From ec0311e09880fcada346898a689bf7ba51d981ca Mon Sep 17 00:00:00 2001 From: Mubaris NK Date: Thu, 25 Mar 2021 12:28:01 +0530 Subject: [PATCH] Cleanup --- contracts/TokenDelegate.sol | 8 -------- test/token.test.js | 9 --------- 2 files changed, 17 deletions(-) diff --git a/contracts/TokenDelegate.sol b/contracts/TokenDelegate.sol index b5fc826..873ebe4 100644 --- a/contracts/TokenDelegate.sol +++ b/contracts/TokenDelegate.sol @@ -1,8 +1,6 @@ pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; -import "hardhat/console.sol"; - import { TokenDelegateStorageV1, TokenEvents} from "./TokenInterfaces.sol"; import { SafeMath } from "./SafeMath.sol"; @@ -47,9 +45,6 @@ contract TokenDelegate is TokenDelegateStorageV1, TokenEvents { mintingAllowedAfter = mintingAllowedAfter_; transferPaused = transferPaused_; - // console.log("Account: ", account); - // console.log("Balance: ", balances[account]); - if (transferPaused) { emit TransferPaused(msg.sender); } else { @@ -339,9 +334,6 @@ contract TokenDelegate is TokenDelegateStorageV1, TokenEvents { require(src != address(0), "Tkn::_transferTokens: cannot transfer from the zero address"); require(dst != address(0), "Tkn::_transferTokens: cannot transfer to the zero address"); - // console.log("Balance: ", balances[src]); - // console.log("Account (Transfer): ", src); - balances[src] = sub96(balances[src], amount, "Tkn::_transferTokens: transfer amount exceeds balance"); balances[dst] = add96(balances[dst], amount, "Tkn::_transferTokens: transfer amount overflows"); emit Transfer(src, dst, amount); diff --git a/test/token.test.js b/test/token.test.js index c4a7920..4cfa835 100644 --- a/test/token.test.js +++ b/test/token.test.js @@ -17,11 +17,6 @@ describe("Token", function() { await tokenDelegate.deployed() - // console.log((await tokenDelegate.totalSupply())) - // console.log((await tokenDelegate.symbol())) - // console.log((await tokenDelegate.decimals())) - // console.log((await tokenDelegate.transferPaused())) - allowedAfter = 1622505601 // June 1 2021 const TokenDelegator = await ethers.getContractFactory("TokenDelegator") @@ -31,10 +26,6 @@ describe("Token", function() { token = await ethers.getContractAt("TokenDelegate", tokenDelegator.address) - // console.log((await tokenDelegate.balanceOf(minter.address))) - - // console.log((await token.balanceOf(minter.address))) - await token.transfer(account1.address, ethers.utils.parseEther("10000")) await token.transfer(account2.address, ethers.utils.parseEther("20000"))