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 +}