Skip to content

Commit

Permalink
Merge pull request #24 from PiVortex/main
Browse files Browse the repository at this point in the history
Update near.js
  • Loading branch information
gagdiez authored Jul 12, 2024
2 parents 95262cd + c165cb5 commit c236ef4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/wallets/near.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,8 +135,7 @@ 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);
};
}
}

0 comments on commit c236ef4

Please sign in to comment.