diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-11 19:30:46 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-12 18:54:42 +0800 |
commit | 899efd5e64ea90cb44b21d49c0fe0a230732fcb8 (patch) | |
tree | 79888183961f51833a5ac8b1022701f513b9e723 /test/compilationTests/zeppelin/token | |
parent | 8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2 (diff) | |
download | dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.tar dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.tar.gz dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.tar.bz2 dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.tar.lz dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.tar.xz dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.tar.zst dexon-solidity-899efd5e64ea90cb44b21d49c0fe0a230732fcb8.zip |
Update compilation tests wrt requiring storage locations.
Diffstat (limited to 'test/compilationTests/zeppelin/token')
-rw-r--r-- | test/compilationTests/zeppelin/token/VestedToken.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compilationTests/zeppelin/token/VestedToken.sol b/test/compilationTests/zeppelin/token/VestedToken.sol index 893a51db..48818c3f 100644 --- a/test/compilationTests/zeppelin/token/VestedToken.sol +++ b/test/compilationTests/zeppelin/token/VestedToken.sol @@ -74,7 +74,7 @@ contract VestedToken is StandardToken, LimitedTransferToken { * @param _grantId The id of the token grant. */ function revokeTokenGrant(address _holder, uint256 _grantId) public { - TokenGrant grant = grants[_holder][_grantId]; + TokenGrant storage grant = grants[_holder][_grantId]; if (!grant.revokable) { // Check if grant was revokable throw; @@ -193,7 +193,7 @@ contract VestedToken is StandardToken, LimitedTransferToken { * revokability, burnsOnRevoke, and vesting) plus the vested value at the current time. */ function tokenGrant(address _holder, uint256 _grantId) public view returns (address granter, uint256 value, uint256 vested, uint64 start, uint64 cliff, uint64 vesting, bool revokable, bool burnsOnRevoke) { - TokenGrant grant = grants[_holder][_grantId]; + TokenGrant storage grant = grants[_holder][_grantId]; granter = grant.granter; value = grant.value; |