fix tip() deprecation and use deal()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user