diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-11 19:23:33 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-12 18:54:42 +0800 |
commit | 8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2 (patch) | |
tree | 994b5301030fad5985f1a347a1603875aaca523b /test/contracts/Wallet.cpp | |
parent | a1f54f4e40811e526541f3a54f6a19dd42c8e688 (diff) | |
download | dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.gz dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.zst dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.zip |
Update test wrt requiring storage locations.
Diffstat (limited to 'test/contracts/Wallet.cpp')
-rw-r--r-- | test/contracts/Wallet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/contracts/Wallet.cpp b/test/contracts/Wallet.cpp index b3a096a3..45fe5bbd 100644 --- a/test/contracts/Wallet.cpp +++ b/test/contracts/Wallet.cpp @@ -119,7 +119,7 @@ contract multiowned { // make sure they're an owner if (ownerIndex == 0) return; uint ownerIndexBit = 2**ownerIndex; - PendingState pending = m_pending[_operation]; + PendingState storage pending = m_pending[_operation]; if (pending.ownersDone & ownerIndexBit > 0) { pending.yetNeeded++; pending.ownersDone -= ownerIndexBit; @@ -178,7 +178,7 @@ contract multiowned { } function hasConfirmed(bytes32 _operation, address _owner) view returns (bool) { - PendingState pending = m_pending[_operation]; + PendingState storage pending = m_pending[_operation]; uint ownerIndex = m_ownerIndex[uint(_owner)]; // make sure they're an owner @@ -201,7 +201,7 @@ contract multiowned { // make sure they're an owner if (ownerIndex == 0) return; - PendingState pending = m_pending[_operation]; + PendingState storage pending = m_pending[_operation]; // if we're not yet working on this operation, switch over and reset the confirmation status. if (pending.yetNeeded == 0) { // reset count of confirmations needed. |