Skip to content

Commit

Permalink
add an address typecast to this per issue OpenZeppelin#1457
Browse files Browse the repository at this point in the history
  • Loading branch information
alant committed Oct 21, 2018
1 parent 3b14be9 commit ca15a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/drafts/TokenVesting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ contract TokenVesting is Ownable {
* @param token ERC20 token which is being vested
*/
function _vestedAmount(IERC20 token) private view returns (uint256) {
uint256 currentBalance = token.balanceOf(this);
uint256 currentBalance = token.balanceOf(address(this));
uint256 totalBalance = currentBalance.add(_released[token]);

if (block.timestamp < _cliff) {
Expand Down

0 comments on commit ca15a98

Please sign in to comment.