aboutsummaryrefslogtreecommitdiffstats
path: root/test/contracts/FixedFeeRegistrar.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-06-29 06:14:22 +0800
committerchriseth <c@ethdev.com>2016-06-29 06:14:50 +0800
commitccba76384510ea3aa3565029a8a68ca8f777a4ea (patch)
tree67c5d08757b9215c880bb9ed6b7f95588621e2b2 /test/contracts/FixedFeeRegistrar.cpp
parent272a9d94d2d42cbaf3ac26bd72132bbc74d6e22c (diff)
downloaddexon-solidity-ccba76384510ea3aa3565029a8a68ca8f777a4ea.tar.gz
dexon-solidity-ccba76384510ea3aa3565029a8a68ca8f777a4ea.tar.zst
dexon-solidity-ccba76384510ea3aa3565029a8a68ca8f777a4ea.zip
Fix test contracts.
Diffstat (limited to 'test/contracts/FixedFeeRegistrar.cpp')
-rw-r--r--test/contracts/FixedFeeRegistrar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp
index dec29b37..8cb8257a 100644
--- a/test/contracts/FixedFeeRegistrar.cpp
+++ b/test/contracts/FixedFeeRegistrar.cpp
@@ -81,7 +81,8 @@ contract FixedFeeRegistrar is Registrar {
}
function disown(string _name, address _refund) onlyrecordowner(_name) {
delete m_recordData[uint(sha3(_name)) / 8];
- _refund.send(c_fee);
+ if (!_refund.send(c_fee))
+ throw;
Changed(_name);
}
function transfer(string _name, address _newOwner) onlyrecordowner(_name) {