From c165cb52a503d854618e5e8678fe5eb77799c8aa Mon Sep 17 00:00:00 2001 From: Owen <124691791+PiVortex@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:39:36 +0100 Subject: [PATCH] Update near.js --- frontend/src/wallets/near.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/wallets/near.js b/frontend/src/wallets/near.js index c7f038d..f620195 100644 --- a/frontend/src/wallets/near.js +++ b/frontend/src/wallets/near.js @@ -126,7 +126,7 @@ export class Wallet { }; /** - * Makes a call to a contract + * Retrieves transaction result from the network * @param {string} txhash - the transaction hash * @returns {Promise} - the result of the transaction */ @@ -135,8 +135,7 @@ 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); }; -} \ No newline at end of file +}