Skip to content

Commit

Permalink
add new status codes (#1400)
Browse files Browse the repository at this point in the history
Signed-off-by: Petar Tonev <[email protected]>

Signed-off-by: Petar Tonev <[email protected]>
  • Loading branch information
petreze authored Jan 20, 2023
1 parent e442263 commit 021459b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Status.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,10 @@ export default class Status {
return "MAX_CHILD_RECORDS_EXCEEDED";
case Status.InsufficientBalancesForRenewalFees:
return "INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES";
case Status.TransactionHasUnknownFields:
return "TRANSACTION_HAS_UNKNOWN_FIELDS";
case Status.AccountIsImmutable:
return "ACCOUNT_IS_IMMUTABLE";
default:
return `UNKNOWN (${this._code})`;
}
Expand Down Expand Up @@ -1205,6 +1209,10 @@ export default class Status {
return Status.MaxChildRecordsExceeded;
case 329:
return Status.InsufficientBalancesForRenewalFees;
case 330:
return Status.TransactionHasUnknownFields;
case 331:
return Status.AccountIsImmutable;
default:
throw new Error(
`(BUG) Status.fromCode() does not handle code: ${code}`
Expand Down Expand Up @@ -2700,3 +2708,14 @@ Status.MaxChildRecordsExceeded = new Status(328);
* the auto-renewal fees in a transaction.
*/
Status.InsufficientBalancesForRenewalFees = new Status(329);

/**
* A transaction's protobuf message includes unknown fields; could mean that a client
* expects not-yet-released functionality to be available.
*/
Status.TransactionHasUnknownFields = new Status(330);

/**
* The account cannot be modified. Account's key is not set
*/
Status.AccountIsImmutable = new Status(331);

0 comments on commit 021459b

Please sign in to comment.