From 5550c3521f6f172e173cf6f58e44b642c30d116a Mon Sep 17 00:00:00 2001 From: Meet Mangukiya Date: Thu, 12 Sep 2024 11:17:47 +0530 Subject: [PATCH] chore: soft link ERC20Mintable into test/src/ --- test/e2e/Helper.sol | 6 +++++- test/src/ERC20Mintable.sol | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 120000 test/src/ERC20Mintable.sol diff --git a/test/e2e/Helper.sol b/test/e2e/Helper.sol index aa592052..73507e38 100644 --- a/test/e2e/Helper.sol +++ b/test/e2e/Helper.sol @@ -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) {} @@ -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)); } } diff --git a/test/src/ERC20Mintable.sol b/test/src/ERC20Mintable.sol new file mode 120000 index 00000000..c31a1693 --- /dev/null +++ b/test/src/ERC20Mintable.sol @@ -0,0 +1 @@ +../e2e/ERC20Mintable.sol \ No newline at end of file