Skip to content

Commit

Permalink
add support to update alias for existing accounts without alias set
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeharika-Sompalli committed Jan 18, 2022
1 parent b284461 commit 2af6394
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions services/crypto_update.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,12 @@ message CryptoUpdateTransactionBody {
* including implicit and explicit associations.
*/
google.protobuf.Int32Value max_automatic_token_associations = 15;

/**
* If set, the new public key bytes to be used as the account's alias. Alias can be updated
* only on accounts that does not have it set previously. It will be immutable once it is
* set on an account. For successful update of alias, the corresponding alias private key
* should sign the transaction.
*/
bytes alias = 16;
}
5 changes: 5 additions & 0 deletions services/response_code.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1131,4 +1131,9 @@ enum ResponseCodeEnum {
* The fee collector account id in TokenFeeScheduleUpdate is invalid or does not exist.
*/
INVALID_FEE_COLLECTOR_ACCOUNT_ID = 286;

/**
* The alias already set on an account cannot be updated using CryptoUpdate transaction.
*/
ALIAS_IS_IMMUTABLE = 287;
}

0 comments on commit 2af6394

Please sign in to comment.