From 753b4486952c7bf7ab38c8279c8f8662c1ae7af3 Mon Sep 17 00:00:00 2001 From: HoseinBaseri Date: Sat, 7 Dec 2024 11:56:14 +0330 Subject: [PATCH 1/2] fix: adjust transaction validity duration in swap function --- lib/utils/swap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/swap.ts b/lib/utils/swap.ts index 3a92a03..0c60de0 100644 --- a/lib/utils/swap.ts +++ b/lib/utils/swap.ts @@ -59,7 +59,7 @@ export default async function swap( tonconnect .sendTransaction({ messages: messages, - validUntil: Date.now() + 1000 * 60 * 60 * 24, + validUntil: Date.now() + 1000 * 60 * 60 * 24 - 1000, }) .then((result) => { const cell = Cell.fromBoc(Buffer.from(result.boc, 'base64'))[0]; From 54b7db8d6468da18480294ee358ab96de87c1180 Mon Sep 17 00:00:00 2001 From: HoseinBaseri Date: Sat, 7 Dec 2024 11:56:36 +0330 Subject: [PATCH 2/2] 2.0.25 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ff8ad6c..b71f60b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@mytonswap/widget", "description": "MyTonSwap Widget - Easy to use swap widget for React on TON Blockchain", - "version": "2.0.24", + "version": "2.0.25", "type": "module", "author": { "name": "MyTonSwap",