diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-12 07:43:19 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-16 21:33:20 +0800 |
commit | aa08460d94f0e3ac8e067f89786175fb5ebba73b (patch) | |
tree | 9a0f9b91f71886ab8648f2d82e04a7449c325fda /test/contracts/FixedFeeRegistrar.cpp | |
parent | 21e97da2949a421987b0c6ad75bd401ce1dad0ab (diff) | |
download | dexon-solidity-aa08460d94f0e3ac8e067f89786175fb5ebba73b.tar.gz dexon-solidity-aa08460d94f0e3ac8e067f89786175fb5ebba73b.tar.zst dexon-solidity-aa08460d94f0e3ac8e067f89786175fb5ebba73b.zip |
Replace throw with revert() in end-to-end tests
Diffstat (limited to 'test/contracts/FixedFeeRegistrar.cpp')
-rw-r--r-- | test/contracts/FixedFeeRegistrar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp index ff683de0..9ebf109e 100644 --- a/test/contracts/FixedFeeRegistrar.cpp +++ b/test/contracts/FixedFeeRegistrar.cpp @@ -84,7 +84,7 @@ contract FixedFeeRegistrar is Registrar { function disown(string memory _name, address _refund) onlyrecordowner(_name) { delete m_recordData[uint(keccak256(bytes(_name))) / 8]; if (!_refund.send(c_fee)) - throw; + revert(); emit Changed(_name); } function transfer(string memory _name, address _newOwner) onlyrecordowner(_name) { |