Skip to content

Commit 41affd1

Browse files
Mani BrarMani Brar
authored andcommitted
fix: approval & config
1 parent d03f0d4 commit 41affd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

validator-cli/src/utils/errors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class InvalidChainIdError extends Error {
3636
constructor(chainId: string) {
3737
super();
3838
this.name = "InvalidChainIdError";
39-
this.message = `Invalid chainId: ${chainId}, use from: 11155111, 10200`;
39+
const allowed = Object.keys(require("../consts/bridgeRoutes").bridges).join(", ");
40+
this.message = `Invalid chainId: ${chainId}, use from: ${allowed}`;
4041
}
4142
}
4243

validator-cli/src/utils/transactionHandlers/arbToGnosisHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class ArbToGnosisTransactionHandler extends BaseTransactionHandler<VeaInb
3333
const currentAllowance: bigint = await weth.allowance(signer.address, veaOutbox.address);
3434
if (currentAllowance < deposit) {
3535
const approvalAmount = deposit * BigInt(10); // Approving for 10 claims
36-
const approveTx = await weth.approve(routeConfig[Network.TESTNET].veaOutbox.address, approvalAmount);
36+
const approveTx = await weth.approve(veaOutbox.address, approvalAmount);
3737
await approveTx.wait();
3838
}
3939
}

0 commit comments

Comments
 (0)