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