Skip to content

Commit 229201e

Browse files
committed
Fixes after review
1 parent a99aa0b commit 229201e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

contracts/utils/ArbitrumGatewayAdapter.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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),

specific-fork-test/ethereum/Repayer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)