From ccba76384510ea3aa3565029a8a68ca8f777a4ea Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 29 Jun 2016 00:14:22 +0200 Subject: Fix test contracts. --- test/contracts/FixedFeeRegistrar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/contracts/FixedFeeRegistrar.cpp') 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) { -- cgit