From cdc19aea9e965b1cf27645d00eca3a8e9648b2cc Mon Sep 17 00:00:00 2001 From: HoseinBaseri Date: Sat, 11 Jan 2025 11:17:11 +0330 Subject: [PATCH 1/2] reduce transaction validity duration from 24 hours to 12 hours --- 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 9d25a83..955e75d 100644 --- a/lib/utils/swap.ts +++ b/lib/utils/swap.ts @@ -61,7 +61,7 @@ export default async function swap( tonconnect .sendTransaction({ messages: messages, - validUntil: Date.now() + 1000 * 60 * 60 * 24 - 1000, + validUntil: Date.now() + 1000 * 60 * 60 * 12 - 1000, }) .then((result) => { const cell = Cell.fromBoc(Buffer.from(result.boc, 'base64'))[0]; From 1bf216d47e4da08015b8bd4b50ca9a35380e1d97 Mon Sep 17 00:00:00 2001 From: HoseinBaseri Date: Sat, 11 Jan 2025 11:17:37 +0330 Subject: [PATCH 2/2] 2.0.30 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 32a57fc..1ce1a79 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.29", + "version": "2.0.30", "type": "module", "author": { "name": "MyTonSwap",