aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/token/VestedToken.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-13 00:00:05 +0800
committerGitHub <noreply@github.com>2018-07-13 00:00:05 +0800
commit81271801b4560c15911b69a9f6d7e0530359f523 (patch)
tree9e52f36778ee877b1dc2fdf9b532b8aae39f369c /test/compilationTests/zeppelin/token/VestedToken.sol
parent0dd79bc1724bfd5031dd6d1bc3b4c1eda283b5f3 (diff)
parentdf8bbffd8e5b16d29f71860e1c3c851dd65693c4 (diff)
downloaddexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.tar
dexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.tar.gz
dexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.tar.bz2
dexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.tar.lz
dexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.tar.xz
dexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.tar.zst
dexon-solidity-81271801b4560c15911b69a9f6d7e0530359f523.zip
Merge pull request #4478 from ethereum/requireStorageLocation
Turn missing storage locations into an error.
Diffstat (limited to 'test/compilationTests/zeppelin/token/VestedToken.sol')
-rw-r--r--test/compilationTests/zeppelin/token/VestedToken.sol4
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;