diff options
author | chriseth <c@ethdev.com> | 2015-07-23 06:05:09 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-07-23 06:05:09 +0800 |
commit | 1dc55061f4c42bc37dbb89aa976991a03fb2b084 (patch) | |
tree | 80e309912921080cd12cc4991eff96e6ee3ba1cf /libsolidity | |
parent | d4cb489c8f0da6cfcb10883846d4bb9b1abd20ca (diff) | |
download | dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.tar dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.tar.gz dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.tar.bz2 dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.tar.lz dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.tar.xz dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.tar.zst dexon-solidity-1dc55061f4c42bc37dbb89aa976991a03fb2b084.zip |
Remove block number from internal changes.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/SolidityWallet.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libsolidity/SolidityWallet.cpp b/libsolidity/SolidityWallet.cpp index 6d3d501f..d87edd35 100644 --- a/libsolidity/SolidityWallet.cpp +++ b/libsolidity/SolidityWallet.cpp @@ -116,7 +116,7 @@ contract multiowned { } // Replaces an owner `_from` with another `_to`. - function changeOwner(address _from, address _to) onlymanyowners(sha3(msg.data, block.number)) external { + function changeOwner(address _from, address _to) onlymanyowners(sha3(msg.data)) external { if (isOwner(_to)) return; uint ownerIndex = m_ownerIndex[uint(_from)]; if (ownerIndex == 0) return; @@ -128,7 +128,7 @@ contract multiowned { OwnerChanged(_from, _to); } - function addOwner(address _owner) onlymanyowners(sha3(msg.data, block.number)) external { + function addOwner(address _owner) onlymanyowners(sha3(msg.data)) external { if (isOwner(_owner)) return; clearPending(); @@ -142,7 +142,7 @@ contract multiowned { OwnerAdded(_owner); } - function removeOwner(address _owner) onlymanyowners(sha3(msg.data, block.number)) external { + function removeOwner(address _owner) onlymanyowners(sha3(msg.data)) external { uint ownerIndex = m_ownerIndex[uint(_owner)]; if (ownerIndex == 0) return; if (m_required > m_numOwners - 1) return; @@ -154,7 +154,7 @@ contract multiowned { OwnerRemoved(_owner); } - function changeRequirement(uint _newRequired) onlymanyowners(sha3(msg.data, block.number)) external { + function changeRequirement(uint _newRequired) onlymanyowners(sha3(msg.data)) external { if (_newRequired > m_numOwners) return; m_required = _newRequired; clearPending(); @@ -281,11 +281,11 @@ contract daylimit is multiowned { m_lastDay = today(); } // (re)sets the daily limit. needs many of the owners to confirm. doesn't alter the amount already spent today. - function setDailyLimit(uint _newLimit) onlymanyowners(sha3(msg.data, block.number)) external { + function setDailyLimit(uint _newLimit) onlymanyowners(sha3(msg.data)) external { m_dailyLimit = _newLimit; } // (re)sets the daily limit. needs many of the owners to confirm. doesn't alter the amount already spent today. - function resetSpentToday() onlymanyowners(sha3(msg.data, block.number)) external { + function resetSpentToday() onlymanyowners(sha3(msg.data)) external { m_spentToday = 0; } @@ -362,7 +362,7 @@ contract Wallet is multisig, multiowned, daylimit { } // kills the contract sending everything to `_to`. - function kill(address _to) onlymanyowners(sha3(msg.data, block.number)) external { + function kill(address _to) onlymanyowners(sha3(msg.data)) external { suicide(_to); } |