update to monero-ts v0.10.0

This commit is contained in:
woodser 2024-08-16 12:01:41 -04:00
parent 1ba0469798
commit 4345976f20
3 changed files with 123 additions and 13 deletions

View file

@ -334,7 +334,7 @@ class TradeContext {
if (this.disputeWinner) str += "\nDispute winner: " + (this.disputeWinner == DisputeResult.Winner.BUYER ? "Buyer" : "Seller");
str += "\nPayout tx id: " + this.payoutTxId;
if (this.payoutTxId) {
str += "\nPayout fee: " + (await monerod.getTx(this.payoutTxId!)).getFee()!;
str += "\nPayout fee: " + (await monerod.getTx(this.payoutTxId!))!.getFee()!;
if (this.getBuyer().havenod) str += "\nBuyer payout: " + (await this.getBuyer().havenod!.getXmrTx(this.payoutTxId!))?.getIncomingTransfersList()[0].getAmount()!;
if (this.getSeller().havenod) str += "\nSeller payout: " + (await this.getSeller().havenod!.getXmrTx(this.payoutTxId!))?.getIncomingTransfersList()[0].getAmount()!;
}