Skip to content

Commit

Permalink
feat: update token test
Browse files Browse the repository at this point in the history
  • Loading branch information
mektigboy committed Feb 20, 2023
1 parent bdb8b8e commit fe1d15d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/Token.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ contract Token is Test {
IToken tokenInterface;

function setUp() public {
vm.prank(OWNER);
vm.startPrank(OWNER);

address tokenAddress = HuffDeployer
.config()
.with_args(abi.encodePacked(OWNER, abi.encode(21000000)))
.deploy("Token");
tokenInterface = IToken(tokenAddress);

tokenInterface.transfer(ATTACKER, 20);
vm.stopPrank();
}

function test_totalSupply() public {
Expand Down

0 comments on commit fe1d15d

Please sign in to comment.