From e4b42167349f9b06e98d61a90a74209c266efeeb Mon Sep 17 00:00:00 2001 From: Owen <124691791+PiVortex@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:44:43 +0100 Subject: [PATCH] Update wallet.js --- frontend/wallet.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/wallet.js b/frontend/wallet.js index b4c0a04..f4f1431 100644 --- a/frontend/wallet.js +++ b/frontend/wallet.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,7 +135,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); }; @@ -144,4 +143,4 @@ export class Wallet { const selectedWallet = await (await this.selector).wallet(); return selectedWallet.signAndSendTransactions({ transactions }); } -} \ No newline at end of file +}