Skip to content

Commit

Permalink
chore: update Status with new response codes
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Akhterov <[email protected]>
  • Loading branch information
janaakhterov committed Aug 4, 2021
1 parent cee734b commit dfd52e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Status.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})`;
}
Expand Down Expand Up @@ -901,6 +903,8 @@ export default class Status {
return Status.CustomFeeChargingExceededMaxRecursionDepth;
case 258:
return Status.CustomFeeChargingExceededMaxAccountAmounts;
case 259:
return Status.InsufficientSenderAccountBalanceForCustomFee;
}

throw new Error(
Expand Down Expand Up @@ -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);

0 comments on commit dfd52e7

Please sign in to comment.