Skip to content

Commit

Permalink
Merge pull request #27 from MyTonSwap/develop
Browse files Browse the repository at this point in the history
fixed transaction status and upgraded package version to 2.0.24
  • Loading branch information
Ho3einWave authored Dec 7, 2024
2 parents 7924f77 + c8a0a33 commit d476670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/utils/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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.23",
"version": "2.0.24",
"type": "module",
"author": {
"name": "MyTonSwap",
Expand Down

0 comments on commit d476670

Please sign in to comment.