mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjust tests.
This commit is contained in:
committed by
Alex Beregszaszi
parent
23c4142005
commit
86a720b96a
@@ -82,7 +82,7 @@ contract FixedFeeRegistrar is Registrar {
|
||||
}
|
||||
}
|
||||
function disown(string _name, address _refund) onlyrecordowner(_name) {
|
||||
delete m_recordData[uint(keccak256(_name)) / 8];
|
||||
delete m_recordData[uint(keccak256(bytes(_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(keccak256(_name)) / 8];
|
||||
return m_recordData[uint(keccak256(bytes(_name))) / 8];
|
||||
}
|
||||
uint constant c_fee = 69 ether;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user