Skip to content

Commit c236ef4

Browse files
authored
Merge pull request #24 from PiVortex/main
Update near.js
2 parents 95262cd + c165cb5 commit c236ef4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/wallets/near.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class Wallet {
126126
};
127127

128128
/**
129-
* Makes a call to a contract
129+
* Retrieves transaction result from the network
130130
* @param {string} txhash - the transaction hash
131131
* @returns {Promise<JSON.value>} - the result of the transaction
132132
*/
@@ -135,8 +135,7 @@ export class Wallet {
135135
const { network } = walletSelector.options;
136136
const provider = new providers.JsonRpcProvider({ url: network.nodeUrl });
137137

138-
// Retrieve transaction result from the network
139138
const transaction = await provider.txStatus(txhash, 'unnused');
140139
return providers.getTransactionLastResult(transaction);
141140
};
142-
}
141+
}

0 commit comments

Comments
 (0)