Skip to content

Commit

Permalink
Rename revealSecret to revealNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
varasev committed Nov 22, 2019
1 parent 95513e6 commit 152012b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ethcore/res/contracts/authority_round_random.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
{
"constant": false,
"inputs": [{
"name": "_secret",
"name": "_number",
"type": "uint256"
}],
"name": "revealSecret",
"name": "revealNumber",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
Expand Down
4 changes: 2 additions & 2 deletions ethcore/src/engines/authority_round/randomness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use_contract!(aura_random, "res/contracts/authority_round_random.json");
/// | |
/// | call |
/// | `commitHash()` | call
/// | | `revealSecret`
/// | | `revealNumber`
/// | |
/// +------v-------+ +-------+-------+
/// | | | |
Expand Down Expand Up @@ -227,7 +227,7 @@ impl RandomnessPhase {
}

// We are now sure that we have the correct secret and can reveal it.
let (data, _decoder) = aura_random::functions::reveal_secret::call(secret);
let (data, _decoder) = aura_random::functions::reveal_number::call(secret);
Ok(Some(data))
}
}
Expand Down

0 comments on commit 152012b

Please sign in to comment.