Skip to content

Commit

Permalink
Merge pull request #28 from MyTonSwap/develop
Browse files Browse the repository at this point in the history
fix validUntil bug in swap.ts
  • Loading branch information
Ho3einWave authored Dec 7, 2024
2 parents d476670 + 54b7db8 commit 40822b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 40822b9

Please sign in to comment.