Skip to content

Commit 5550c35

Browse files
committed
chore: soft link ERC20Mintable into test/src/
1 parent 9133a8f commit 5550c35

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/e2e/Helper.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ interface IAuthorizer {
2525
function grantRole(bytes32, address) external;
2626
}
2727

28+
interface IERC20Mintable is IERC20 {
29+
function mint(address, uint) external;
30+
}
31+
2832
contract Harness is GPv2Settlement {
2933
constructor(GPv2Authentication authenticator_, IVault vault) GPv2Settlement(authenticator_, vault) {}
3034

@@ -224,7 +228,7 @@ abstract contract Helper is Test {
224228
function deployMintableErc20(string memory name, string memory symbol) internal returns (IERC20Mintable token) {
225229
// need to use like this because OZ requires ^0.7 and tests are on ^0.8
226230
bytes memory initCode =
227-
abi.encodePacked(vm.getCode("test/e2e/ERC20Mintable.sol:ERC20Mintable"), abi.encode(name, symbol));
231+
abi.encodePacked(vm.getCode("ERC20Mintable"), abi.encode(name, symbol));
228232
token = IERC20Mintable(_create(initCode, 0));
229233
}
230234
}

test/src/ERC20Mintable.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../e2e/ERC20Mintable.sol

0 commit comments

Comments
 (0)