Skip to content

Commit

Permalink
Update wallet.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PiVortex authored Jul 9, 2024
1 parent c190973 commit e4b4216
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<JSON.value>} - the result of the transaction
*/
Expand All @@ -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);
};
Expand All @@ -144,4 +143,4 @@ export class Wallet {
const selectedWallet = await (await this.selector).wallet();
return selectedWallet.signAndSendTransactions({ transactions });
}
}
}

0 comments on commit e4b4216

Please sign in to comment.