From 8f35f99546b64d67f9d7ab4a5a916547b2be96f0 Mon Sep 17 00:00:00 2001 From: D Date: Fri, 9 Aug 2024 14:33:44 +0500 Subject: [PATCH] evm contract changes --- src/config.ts | 4 ++-- src/handler/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index d61aec1..39d21cf 100644 --- a/src/config.ts +++ b/src/config.ts @@ -115,7 +115,7 @@ export const prodBridgeConfig: IBridgeConfig = { rpcURL: "https://bsc.blockpi.network/v1/rpc/public", nativeCoinSymbol: "BNB", intialFund: "50000000000000000", - contractAddress: "0xE0ea24108ec2754467D2c1D9320Cb6A16276478f", + contractAddress: "0x289FDdDce5119C41B82C969135212061D5E7Dce5", chainType: "evm", lastBlock: 41188324, decimals: 18, @@ -126,7 +126,7 @@ export const prodBridgeConfig: IBridgeConfig = { rpcURL: "https://polygon-pokt.nodies.app", nativeCoinSymbol: "MATIC", intialFund: "50000000000000000", - contractAddress: "0x5055E15963504374d989CebC2707f5E46Efb3BDC", + contractAddress: "0x2011DAD5caE280243d075D12a38CcCc0Fb4412dE", chainType: "evm", lastBlock: 59709068, decimals: 18, diff --git a/src/handler/index.ts b/src/handler/index.ts index 0f53bb5..87c63f2 100644 --- a/src/handler/index.ts +++ b/src/handler/index.ts @@ -121,7 +121,7 @@ export async function listenEvents( return tx; } catch (err) { const err_ = err as unknown as { shortMessage: string }; - if (err_.shortMessage.includes("Signature already used")) { + if (err_.shortMessage?.includes("Signature already used")) { return null; } log.error(err_.shortMessage, "Error while approving");