diff --git a/src/config.ts b/src/config.ts index ad508f9..9798b81 100644 --- a/src/config.ts +++ b/src/config.ts @@ -123,7 +123,7 @@ export const prodBridgeConfig: IBridgeConfig = { }, { chain: "MATIC", - rpcURL: "https://polygon-pokt.nodies.app", + rpcURL: "https://polygon.llamarpc.com", nativeCoinSymbol: "MATIC", intialFund: "50000000000000000", contractAddress: "0x2011DAD5caE280243d075D12a38CcCc0Fb4412dE", diff --git a/src/handler/ton/utils/listenForLockEvents.ts b/src/handler/ton/utils/listenForLockEvents.ts index 71e6d1f..5997f5e 100644 --- a/src/handler/ton/utils/listenForLockEvents.ts +++ b/src/handler/ton/utils/listenForLockEvents.ts @@ -59,7 +59,10 @@ export default async function listenForLockEvents( for (let i = 0; i < tx.outMessages.size; i++) { const log = tx.outMessages.get(i) ?? raise("Unreachable"); // if its not the lock nft event we early return - if (log.body.asSlice().loadUint(32) !== 2105076052) { + if ( + log.body.bits.length <= 0 || + log.body.asSlice().loadUint(32) !== 2105076052 + ) { continue; } const {