From 611c594cb204b67caf25e4ed548c4b6c0ef7e92b Mon Sep 17 00:00:00 2001 From: KoFkaDEV Date: Sun, 26 Apr 2026 14:30:28 +0300 Subject: [PATCH 1/3] Register fix.js Register Ton Transaction fix --- src/ton/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ton/index.js b/src/ton/index.js index d75b97c..fb96004 100644 --- a/src/ton/index.js +++ b/src/ton/index.js @@ -212,10 +212,10 @@ class TONValidator { const govInfo = this.govInfo; const REQUEST_SWAP = this.requestSwapABI; - let txHash = data.origin_thash; + let txHash = data.origin_thash || (data.bytes32s && data.bytes32s[1]); txHash = Buffer.from(txHash.replace("0x",""), 'hex').toString('base64'); - let lt = data.data; + let lt = (data.origin_thash ? data.data : null) || (data.uints && data.uints[3]); if(lt.dcomp(UINT64_MAX) !== -1){ logger.ton.error(`Invalid logical time: ${lt}`); return; From 2ae7ab60dc19a1b7334e5389a99b2b31cca42242 Mon Sep 17 00:00:00 2001 From: KoFkaDEV Date: Sun, 26 Apr 2026 14:48:17 +0300 Subject: [PATCH 2/3] Fix Ton Register.js --- src/ton/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ton/index.js b/src/ton/index.js index fb96004..8306d63 100644 --- a/src/ton/index.js +++ b/src/ton/index.js @@ -212,7 +212,7 @@ class TONValidator { const govInfo = this.govInfo; const REQUEST_SWAP = this.requestSwapABI; - let txHash = data.origin_thash || (data.bytes32s && data.bytes32s[1]); + let txHash = data.origin_thash || data.bytes32s?.[1]; txHash = Buffer.from(txHash.replace("0x",""), 'hex').toString('base64'); let lt = (data.origin_thash ? data.data : null) || (data.uints && data.uints[3]); @@ -358,7 +358,7 @@ class TONValidator { return { ...res, outMsgs: out_msgs, - txhash: data.origin_thash, + txhash: rawTxHash, fromAddr, toChain, lt, From f3cfa8368a685aef841ec3da15b025e85b154180 Mon Sep 17 00:00:00 2001 From: KoFkaDEV Date: Sun, 26 Apr 2026 14:52:20 +0300 Subject: [PATCH 3/3] final fix.js --- src/ton/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ton/index.js b/src/ton/index.js index 8306d63..3502ba0 100644 --- a/src/ton/index.js +++ b/src/ton/index.js @@ -358,7 +358,7 @@ class TONValidator { return { ...res, outMsgs: out_msgs, - txhash: rawTxHash, + txhash: data.origin_thash || data.bytes32s?.[1], fromAddr, toChain, lt,