File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ class InvalidChainIdError extends Error {
36
36
constructor ( chainId : string ) {
37
37
super ( ) ;
38
38
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 } ` ;
40
41
}
41
42
}
42
43
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class ArbToGnosisTransactionHandler extends BaseTransactionHandler<VeaInb
33
33
const currentAllowance : bigint = await weth . allowance ( signer . address , veaOutbox . address ) ;
34
34
if ( currentAllowance < deposit ) {
35
35
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 ) ;
37
37
await approveTx . wait ( ) ;
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments