Skip to content

Commit

Permalink
feat: Update ERC20Permit test to not use mock ERC20Permit (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Manuel authored Mar 4, 2022
1 parent 2f99820 commit 9734658
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/test/ERC20Permit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pragma solidity ^0.8.7;

import { DSTest } from "../../modules/ds-test/src/test.sol";

import { ERC20Permit } from "../ERC20Permit.sol";

import { ERC20PermitUser } from "./accounts/ERC20User.sol";

import { MockERC20Permit } from "./mocks/MockERC20.sol";
Expand All @@ -26,7 +28,7 @@ contract ERC20PermitTest is DSTest {

bytes constant ARITHMETIC_ERROR = abi.encodeWithSignature("Panic(uint256)", 0x11);

MockERC20Permit token;
ERC20Permit token;
ERC20PermitUser user;

uint256 skOwner = 1;
Expand All @@ -46,7 +48,7 @@ contract ERC20PermitTest is DSTest {
spender = vm.addr(skSpender);

vm.warp(deadline - 52 weeks);
token = new MockERC20Permit("Maple Token", "MPL", 18);
token = new ERC20Permit("Maple Token", "MPL", 18);
user = new ERC20PermitUser();
}

Expand Down

0 comments on commit 9734658

Please sign in to comment.