File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
specific-fork-test/ethereum Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ abstract contract ArbitrumGatewayAdapter is AdapterHelper {
3939
4040 _validateOutputToken (_addressToBytes32 (outputToken), destinationDomain, outputTokens);
4141 // Get output token from the gateway
42- address gatewayOutputToken = ARBITRUM_GATEWAY_ROUTER .calculateL2TokenAddress (address (token));
42+ address gatewayOutputToken = router .calculateL2TokenAddress (address (token));
4343 // Check that output tokens match
4444 require (gatewayOutputToken == outputToken, InvalidOutputToken ());
45- address gateway = ARBITRUM_GATEWAY_ROUTER .getGateway (address (token));
45+ address gateway = router .getGateway (address (token));
4646 token.forceApprove (gateway, amount);
4747 bytes memory gatewayData = router.outboundTransfer {value: msg .value }(
4848 address (token),
Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ describe("Repayer", function () {
2929 const DEPOSIT_PROFIT_ROLE = toBytes32 ( "DEPOSIT_PROFIT_ROLE" ) ;
3030
3131 const usdc = await hre . ethers . getContractAt ( "ERC20" , forkNetworkConfig . Tokens . USDC ) ;
32- const dai = await hre . ethers . getContractAt ( "ERC20" , forkNetworkConfig . Tokens . DAI ! ) ;
33- const wbtc = await hre . ethers . getContractAt ( "ERC20" , forkNetworkConfig . Tokens . WBTC ! ) ;
32+ assertAddress ( forkNetworkConfig . Tokens . DAI , "DAI address is missing" ) ;
33+ const dai = await hre . ethers . getContractAt ( "ERC20" , forkNetworkConfig . Tokens . DAI ) ;
34+ assertAddress ( forkNetworkConfig . Tokens . WBTC , "WBTC address is missing" ) ;
35+ const wbtc = await hre . ethers . getContractAt ( "ERC20" , forkNetworkConfig . Tokens . WBTC ) ;
3436 const liquidityPool = ( await deploy (
3537 "TestLiquidityPool" ,
3638 deployer ,
You can’t perform that action at this time.
0 commit comments