From dfd52e74eb9a8d56c42b8add74d64a084d88ee64 Mon Sep 17 00:00:00 2001 From: Daniel Akhterov Date: Wed, 4 Aug 2021 14:05:54 -0700 Subject: [PATCH] chore: update Status with new response codes Signed-off-by: Daniel Akhterov --- src/Status.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Status.js b/src/Status.js index 4461b2d69..ad12b416b 100644 --- a/src/Status.js +++ b/src/Status.js @@ -455,6 +455,8 @@ export default class Status { return "CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH"; case Status.CustomFeeChargingExceededMaxAccountAmounts: return "CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS"; + case Status.InsufficientSenderAccountBalanceForCustomFee: + return "INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE"; default: return `UNKNOWN (${this._code})`; } @@ -901,6 +903,8 @@ export default class Status { return Status.CustomFeeChargingExceededMaxRecursionDepth; case 258: return Status.CustomFeeChargingExceededMaxAccountAmounts; + case 259: + return Status.InsufficientSenderAccountBalanceForCustomFee; } throw new Error( @@ -2000,3 +2004,8 @@ Status.CustomFeeChargingExceededMaxRecursionDepth = new Status(257); * More than 20 balance adjustments were to satisfy a CryptoTransfer and its implied custom fee payments */ Status.CustomFeeChargingExceededMaxAccountAmounts = new Status(258); + +/** + * The sender account in the token transfer transaction could not afford a custom fee + */ +Status.InsufficientSenderAccountBalanceForCustomFee = new Status(259);