From 32bc7a6fe52f981eb0f0a6601e14ebcb6372c12c Mon Sep 17 00:00:00 2001 From: "Hao (Alan) Tang" <7888785@qq.com> Date: Fri, 2 Nov 2018 02:56:50 -0700 Subject: [PATCH] add an address typecast to this per issue #1457 (#1471) --- contracts/drafts/TokenVesting.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/drafts/TokenVesting.sol b/contracts/drafts/TokenVesting.sol index 2f5fd2fdc..3fa49f79f 100644 --- a/contracts/drafts/TokenVesting.sol +++ b/contracts/drafts/TokenVesting.sol @@ -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) {