Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new status codes #1400

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);