Skip to content

Commit

Permalink
add an address typecast to this per issue #1457 (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
alant authored and nventuro committed Nov 2, 2018
1 parent 1186520 commit 32bc7a6
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 32bc7a6

Please sign in to comment.