Skip to content

Commit

Permalink
Merge pull request #14 from PiVortex/main
Browse files Browse the repository at this point in the history
Update near.js
  • Loading branch information
gagdiez authored Jul 9, 2024
2 parents 692f152 + d9e54b4 commit 1b671c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/wallets/near.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Wallet {
};

/**
* Fetches transaction result from the network
* Retrieves transaction result from the network
* @param {string} txhash - the transaction hash
* @returns {Promise<JSON.value>} - the result of the transaction
*/
Expand All @@ -146,7 +146,6 @@ export class Wallet {
const { network } = walletSelector.options;
const provider = new providers.JsonRpcProvider({ url: network.nodeUrl });

// Retrieve transaction result from the network
const transaction = await provider.txStatus(txhash, "unnused");
return providers.getTransactionLastResult(transaction);
};
Expand Down

0 comments on commit 1b671c1

Please sign in to comment.