diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-11 20:43:29 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-30 19:33:04 +0800 |
commit | 9e1c509cf560096b620c3ba627277e622cf8f261 (patch) | |
tree | 33dc98250eab105833358840483ba77e2c99f17c /test/contracts/FixedFeeRegistrar.cpp | |
parent | 75e4a2be1b920ad88c34a261a84cef5f4635eb68 (diff) | |
download | dexon-solidity-9e1c509cf560096b620c3ba627277e622cf8f261.tar.gz dexon-solidity-9e1c509cf560096b620c3ba627277e622cf8f261.tar.zst dexon-solidity-9e1c509cf560096b620c3ba627277e622cf8f261.zip |
Use keccak256() in tests (and not sha3())
Diffstat (limited to 'test/contracts/FixedFeeRegistrar.cpp')
-rw-r--r-- | test/contracts/FixedFeeRegistrar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp index 39c32eb7..d2904b5f 100644 --- a/test/contracts/FixedFeeRegistrar.cpp +++ b/test/contracts/FixedFeeRegistrar.cpp @@ -82,7 +82,7 @@ contract FixedFeeRegistrar is Registrar { } } function disown(string _name, address _refund) onlyrecordowner(_name) { - delete m_recordData[uint(sha3(_name)) / 8]; + delete m_recordData[uint(keccak256(_name)) / 8]; if (!_refund.send(c_fee)) throw; Changed(_name); @@ -118,7 +118,7 @@ contract FixedFeeRegistrar is Registrar { Record[2**253] m_recordData; function m_record(string _name) constant internal returns (Record storage o_record) { - return m_recordData[uint(sha3(_name)) / 8]; + return m_recordData[uint(keccak256(_name)) / 8]; } uint constant c_fee = 69 ether; } |