aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-06 20:24:36 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-10-06 22:34:41 +0800
commit111d33d7aced317605fd88c74b01ffbc6ab266c7 (patch)
treefb1b64e7b4a3f20327b8514baadae6151c1f19e4 /docs/solidity-by-example.rst
parent34df80c502c5e20fda6db1d2152beccdfb3342cc (diff)
downloaddexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar
dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.gz
dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.bz2
dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.lz
dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.xz
dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.zst
dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.zip
Rename sha3 to keccak256 in the documentation
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 9d3dd6f6..2e53b78c 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -415,7 +415,7 @@ high or low invalid bids.
revealEnd = biddingEnd + _revealTime;
}
- /// Place a blinded bid with `_blindedBid` = sha3(value,
+ /// Place a blinded bid with `_blindedBid` = keccak256(value,
/// fake, secret).
/// The sent ether is only refunded if the bid is correctly
/// revealed in the revealing phase. The bid is valid if the
@@ -459,7 +459,7 @@ high or low invalid bids.
var bid = bids[msg.sender][i];
var (value, fake, secret) =
(_values[i], _fake[i], _secret[i]);
- if (bid.blindedBid != sha3(value, fake, secret)) {
+ if (bid.blindedBid != keccak256(value, fake, secret)) {
// Bid was not actually revealed.
// Do not refund deposit.
continue;