mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace throw with revert() in end-to-end tests
This commit is contained in:
committed by
chriseth
parent
21e97da294
commit
aa08460d94
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user