Skip to content

Commit

Permalink
fix(adapter): replace l2Bridge with l2BridgeAddress in `_getL2Gas…
Browse files Browse the repository at this point in the history
…LimitFromCustomBridge`
  • Loading branch information
petarTxFusion committed Jun 10, 2024
1 parent da60f07 commit 7a2e611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,8 @@ export function AdapterL1<TBase extends Constructor<TxSender>>(Base: TBase) {
transaction.bridgeAddress!,
this._signerL1()
);
const l2Address = await bridge.l2Bridge();
const chainId = (await this._providerL2().getNetwork()).chainId;
const l2Address = await bridge.l2BridgeAddress(chainId);
return await estimateCustomBridgeDepositL2Gas(
this._providerL2(),
transaction.bridgeAddress!,
Expand Down

0 comments on commit 7a2e611

Please sign in to comment.