mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-22 14:30:51 -04:00
test payout tx state
This commit is contained in:
parent
428e22f7b1
commit
619c2f5ead
2 changed files with 15 additions and 14 deletions
|
@ -866,12 +866,12 @@ export default class HavenoClient {
|
|||
* @param {String} txHash - hash of the transaction to get
|
||||
* @return {XmrTx} the transaction with the hash
|
||||
*/
|
||||
async getXmrTx(txHash: string): Promise<XmrTx> {
|
||||
async getXmrTx(txHash: string): Promise<XmrTx|undefined> {
|
||||
const txs = await this.getXmrTxs(); // TODO (woodser): implement getXmrTx(hash) grpc call
|
||||
for (const tx of txs) {
|
||||
if (tx.getHash() === txHash) return tx;
|
||||
}
|
||||
throw new HavenoError("No transaction with hash " + txHash);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue