From 152012bb55eb97bf2e0aeb47438ee75da41df5d7 Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 22 Nov 2019 12:03:05 +0300 Subject: [PATCH] Rename revealSecret to revealNumber --- ethcore/res/contracts/authority_round_random.json | 4 ++-- ethcore/src/engines/authority_round/randomness.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ethcore/res/contracts/authority_round_random.json b/ethcore/res/contracts/authority_round_random.json index 8db82b5cd1f..3263466aae1 100644 --- a/ethcore/res/contracts/authority_round_random.json +++ b/ethcore/res/contracts/authority_round_random.json @@ -42,10 +42,10 @@ { "constant": false, "inputs": [{ - "name": "_secret", + "name": "_number", "type": "uint256" }], - "name": "revealSecret", + "name": "revealNumber", "outputs": [], "payable": false, "stateMutability": "nonpayable", diff --git a/ethcore/src/engines/authority_round/randomness.rs b/ethcore/src/engines/authority_round/randomness.rs index 757a36c2033..2bd38670cde 100644 --- a/ethcore/src/engines/authority_round/randomness.rs +++ b/ethcore/src/engines/authority_round/randomness.rs @@ -40,7 +40,7 @@ use_contract!(aura_random, "res/contracts/authority_round_random.json"); /// | | /// | call | /// | `commitHash()` | call -/// | | `revealSecret` +/// | | `revealNumber` /// | | /// +------v-------+ +-------+-------+ /// | | | | @@ -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)) } }