Skip to content

Commit

Permalink
chore: soft link ERC20Mintable into test/src/
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya committed Sep 12, 2024
1 parent 9133a8f commit 5550c35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/Helper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ interface IAuthorizer {
function grantRole(bytes32, address) external;
}

interface IERC20Mintable is IERC20 {
function mint(address, uint) external;
}

contract Harness is GPv2Settlement {
constructor(GPv2Authentication authenticator_, IVault vault) GPv2Settlement(authenticator_, vault) {}

Expand Down Expand Up @@ -224,7 +228,7 @@ abstract contract Helper is Test {
function deployMintableErc20(string memory name, string memory symbol) internal returns (IERC20Mintable token) {
// need to use like this because OZ requires ^0.7 and tests are on ^0.8
bytes memory initCode =
abi.encodePacked(vm.getCode("test/e2e/ERC20Mintable.sol:ERC20Mintable"), abi.encode(name, symbol));
abi.encodePacked(vm.getCode("ERC20Mintable"), abi.encode(name, symbol));
token = IERC20Mintable(_create(initCode, 0));
}
}
1 change: 1 addition & 0 deletions test/src/ERC20Mintable.sol

0 comments on commit 5550c35

Please sign in to comment.