Explorar o código

add an address typecast to this per issue #1457 (#1471)

Hao (Alan) Tang %!s(int64=7) %!d(string=hai) anos
pai
achega
32bc7a6fe5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contracts/drafts/TokenVesting.sol

+ 1 - 1
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) {