From 5a6340395f508ba6dd6084fcdafe6c0ee9b037c1 Mon Sep 17 00:00:00 2001 From: Jorge Izquierdo Date: Sun, 21 May 2017 11:22:30 +0200 Subject: [PATCH] Fix grant id parameter in NewTokenGrant event --- contracts/token/VestedToken.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/token/VestedToken.sol b/contracts/token/VestedToken.sol index 0c8f118ed..53408071f 100644 --- a/contracts/token/VestedToken.sol +++ b/contracts/token/VestedToken.sol @@ -33,7 +33,7 @@ contract VestedToken is StandardToken, TransferableToken { throw; } - uint id = grants[_to].push( + uint count = grants[_to].push( TokenGrant( _revokable ? msg.sender : 0, // avoid storing an extra 20 bytes when it is non-revokable _value, @@ -47,7 +47,7 @@ contract VestedToken is StandardToken, TransferableToken { transfer(_to, _value); - NewTokenGrant(msg.sender, _to, _value, id); + NewTokenGrant(msg.sender, _to, _value, count - 1); } function revokeTokenGrant(address _holder, uint _grantId) public {