fix tip() deprecation and use deal()

This commit is contained in:
dextracker
2022-11-22 20:24:47 -05:00
parent f59f161207
commit c3778fcbfd
3 changed files with 4 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- run: cd contracts/zero-ex && git submodule update --recursive --remote && forge remappings
- run: cd contracts/zero-ex && forge remappings
- run: cd contracts/zero-ex && forge test
test-publish:
resource_class: large

View File

@@ -122,7 +122,7 @@ contract NativeTokenToERC20WithOtcTest is Test, ForkUtils, TestUtils {
order.takerAmount = 1e18;
uint privateKey;
(order.maker, privateKey) = getSigner();
tip(address(order.makerToken), order.maker, 1e20);
vm.deal(address(order.makerToken), order.maker, 1e20);
vm.prank(order.maker);
IERC20TokenV06(tokens.USDC).approve(address(addresses.exchangeProxy), 1e20);
// vm.startPrank(whale);

View File

@@ -4,6 +4,8 @@ out = 'foundry-artifacts'
test = 'contracts/test/foundry'
libs = ["contracts/deps/", "../utils/contracts/src/"]
remappings = [
'forge-std/=contracts/deps/forge-std/src/',
'ds-test/=contracts/deps/forge-std/lib/ds-test/src/',
'@0x/contracts-utils/=../utils/',
'@0x/contracts-erc20/=../erc20/',
'src/=./contracts/src',