Skip to content

Commit

Permalink
fix asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Oct 6, 2023
1 parent 62e94cc commit 15245f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clients/bridges/ArbitrumAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class ArbitrumAdapter extends BaseAdapter {

async wrapEthIfAboveThreshold(threshold: BigNumber, simMode = false): Promise<TransactionResponse | null> {
const { chainId } = this;
assert(chainId === this.chainId, `chainId ${chainId} is not supported`);
assert(42161 === chainId, `chainId ${chainId} is not supported`);

const weth = CONTRACT_ADDRESSES[this.chainId].weth;
const ethBalance = await this.getSigner(chainId).getBalance();
Expand Down
2 changes: 1 addition & 1 deletion src/clients/bridges/op-stack/OpStackAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class OpStackAdapter extends BaseAdapter {

async wrapEthIfAboveThreshold(threshold: BigNumber, simMode = false): Promise<TransactionResponse | null> {
const { chainId } = this;
assert(chainId === this.chainId, `chainId ${chainId} is not supported`);
assert([10, 8453].includes(chainId), `chainId ${chainId} is not supported`);

const ovmWeth = CONTRACT_ADDRESSES[this.chainId].weth;
const ethBalance = await this.getSigner(chainId).getBalance();
Expand Down

0 comments on commit 15245f7

Please sign in to comment.