We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95262cd + c165cb5 commit c236ef4Copy full SHA for c236ef4
frontend/src/wallets/near.js
@@ -126,7 +126,7 @@ export class Wallet {
126
};
127
128
/**
129
- * Makes a call to a contract
+ * Retrieves transaction result from the network
130
* @param {string} txhash - the transaction hash
131
* @returns {Promise<JSON.value>} - the result of the transaction
132
*/
@@ -135,8 +135,7 @@ export class Wallet {
135
const { network } = walletSelector.options;
136
const provider = new providers.JsonRpcProvider({ url: network.nodeUrl });
137
138
- // Retrieve transaction result from the network
139
const transaction = await provider.txStatus(txhash, 'unnused');
140
return providers.getTransactionLastResult(transaction);
141
142
-}
+}
0 commit comments