From c4af3df017a67063360d1afeac09435b64bed887 Mon Sep 17 00:00:00 2001 From: muzam1l Date: Fri, 17 Mar 2023 20:10:57 +0530 Subject: [PATCH] Add DeliverMin field to tx CheckCash. --- content/transactions.json | 4 ++++ utils/estimateFee.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/content/transactions.json b/content/transactions.json index 8d4f369..930ea34 100644 --- a/content/transactions.json +++ b/content/transactions.json @@ -30,6 +30,10 @@ "$value": "100", "$type": "amount.xrp" }, + "DeliverMin": { + "$value": "", + "$type": "amount.xrp" + }, "CheckID": "838766BA2B995C00744175F69A1B11E32C3DBC40E64801A4056FCBD657F57334", "Fee": "12" }, diff --git a/utils/estimateFee.ts b/utils/estimateFee.ts index 0f3bde8..e8e90f1 100644 --- a/utils/estimateFee.ts +++ b/utils/estimateFee.ts @@ -25,7 +25,7 @@ const estimateFee = async ( const res = await xrplSend({ command: 'fee', tx_blob: signedTransaction }) if (res.error) { - throw new Error(`[${res.error}] ${res.error_exception}`); + throw new Error(`[${res.error}] ${res.error_exception}.`); } if (res && res.drops) { return res.drops