Skip to content

Commit

Permalink
Fixes for arb sdk upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Nov 26, 2024
1 parent c6bd84f commit 56a52d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typescript/infra/scripts/funding/fund-keys-from-deployer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EthBridger, getL2Network } from '@arbitrum/sdk';
import { EthBridger, getArbitrumNetwork } from '@arbitrum/sdk';
import { CrossChainMessenger } from '@eth-optimism/sdk';
import { Connection, PublicKey } from '@solana/web3.js';
import { BigNumber, ethers } from 'ethers';
Expand Down Expand Up @@ -841,13 +841,13 @@ class ContextFunder {

private async bridgeToArbitrum(l2Chain: ChainName, amount: BigNumber) {
const l1Chain = L2ToL1[l2Chain];
const l2Network = await getL2Network(
const l2Network = await getArbitrumNetwork(
this.multiProvider.getEvmChainId(l2Chain),
);
const ethBridger = new EthBridger(l2Network);
return ethBridger.deposit({
amount,
l1Signer: this.multiProvider.getSigner(l1Chain),
parentSigner: this.multiProvider.getSigner(l1Chain),
overrides: this.multiProvider.getTransactionOverrides(l1Chain),
});
}
Expand Down

0 comments on commit 56a52d2

Please sign in to comment.