Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
5e7c168b
Commit
5e7c168b
authored
Jul 26, 2017
by
Santiago Palladino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing storage keyword warnings
parent
6fccd202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
VestedToken.sol
contracts/token/VestedToken.sol
+2
-2
No files found.
contracts/token/VestedToken.sol
View file @
5e7c168b
...
@@ -72,7 +72,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
...
@@ -72,7 +72,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
* @param _grantId The id of the token grant.
* @param _grantId The id of the token grant.
*/
*/
function revokeTokenGrant(address _holder, uint256 _grantId) public {
function revokeTokenGrant(address _holder, uint256 _grantId) public {
TokenGrant grant = grants[_holder][_grantId];
TokenGrant
storage
grant = grants[_holder][_grantId];
require(grant.revokable);
require(grant.revokable);
require(grant.granter == msg.sender); // Only granter can revoke it
require(grant.granter == msg.sender); // Only granter can revoke it
...
@@ -186,7 +186,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
...
@@ -186,7 +186,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
* revokability, burnsOnRevoke, and vesting) plus the vested value at the current time.
* revokability, burnsOnRevoke, and vesting) plus the vested value at the current time.
*/
*/
function tokenGrant(address _holder, uint256 _grantId) constant returns (address granter, uint256 value, uint256 vested, uint64 start, uint64 cliff, uint64 vesting, bool revokable, bool burnsOnRevoke) {
function tokenGrant(address _holder, uint256 _grantId) constant 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;
granter = grant.granter;
value = grant.value;
value = grant.value;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment