Skip to content

Commit

Permalink
Update near.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PiVortex authored Jul 9, 2024
1 parent 95262cd commit c165cb5
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 c165cb5

Please sign in to comment.