Skip to content

program: Expand comment on SetAuthority instruction#54

Merged
febo merged 1 commit into
mainfrom
febo/set-authority-comment
May 11, 2026
Merged

program: Expand comment on SetAuthority instruction#54
febo merged 1 commit into
mainfrom
febo/set-authority-comment

Conversation

@febo
Copy link
Copy Markdown
Contributor

@febo febo commented May 11, 2026

Problem

The SetAuthority instruction allows changing the authority on buffer accounts even if a buffer account has a non-canonical derivation. This might look unusual, since the new authority will not be able to initialize the metadata account. The rationale is that it might be useful to allow this in order to simplify the process of writing data, but always require the program upgrade authority (canonical) or the authority in the address derivation (non-canonical) to initialize the metadata account.

Solution

Clarify this aspect on the documentation of the SetAuthority instruction.

@febo febo requested review from lorisleiva May 11, 2026 17:49
@febo febo merged commit 3a21fab into main May 11, 2026
9 checks passed
@febo febo deleted the febo/set-authority-comment branch May 11, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants