diff --git a/lib/utils/swap.ts b/lib/utils/swap.ts index f739cea..3a92a03 100644 --- a/lib/utils/swap.ts +++ b/lib/utils/swap.ts @@ -64,10 +64,12 @@ export default async function swap( .then((result) => { const cell = Cell.fromBoc(Buffer.from(result.boc, 'base64'))[0]; const hash = cell.hash().toString('hex'); + const stateInstance = useSwapStore.getState(); sendTransaction({ hash: hash, query_id: rawMessage.query_id, }); + stateInstance.setTransactionHash(hash, rawMessage.query_id); }) .catch((e) => { console.log(e); diff --git a/package.json b/package.json index 7189913..ff8ad6c 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.23", + "version": "2.0.24", "type": "module", "author": { "name": "MyTonSwap",