@@ -25,19 +25,21 @@ import (
2525)
2626
2727// SetAuthority changes the authority on a buffer or programdata account.
28- // The unchecked variant is deprecated upstream in favour of
28+ // The unchecked variant is deprecated upstream in favor of
2929// SetAuthorityChecked when setting a new non-nil authority, but it remains
3030// the only way to clear an upgrade authority (pass nil for the new authority).
3131//
3232// Account references (buffer form):
33- // [0] = [WRITE] Buffer account
34- // [1] = [SIGNER] Current authority
35- // [2] = [optional] New authority (omit to drop the authority)
33+ //
34+ // [0] = [WRITE] Buffer account
35+ // [1] = [SIGNER] Current authority
36+ // [2] = [optional] New authority (omit to drop the authority)
3637//
3738// Account references (programdata form):
38- // [0] = [WRITE] ProgramData (PDA)
39- // [1] = [SIGNER] Current authority
40- // [2] = [optional] New authority (omit to make the program immutable)
39+ //
40+ // [0] = [WRITE] ProgramData (PDA)
41+ // [1] = [SIGNER] Current authority
42+ // [2] = [optional] New authority (omit to make the program immutable)
4143type SetAuthority struct {
4244 ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
4345}
@@ -86,11 +88,11 @@ func (inst *SetAuthority) EncodeToTree(parent ag_treeout.Branches) {
8688 })
8789}
8890
89- func (inst SetAuthority ) MarshalWithEncoder (_ * ag_binary.Encoder ) error { return nil }
91+ func (inst SetAuthority ) MarshalWithEncoder (_ * ag_binary.Encoder ) error { return nil }
9092func (inst * SetAuthority ) UnmarshalWithDecoder (_ * ag_binary.Decoder ) error { return nil }
9193
9294// NewSetBufferAuthorityInstruction builds a SetAuthority that transfers a
93- // buffer's authority. Upstream deprecates this in favour of
95+ // buffer's authority. Upstream deprecates this in favor of
9496// NewSetBufferAuthorityCheckedInstruction, but it is retained for decoding
9597// historical transactions.
9698func NewSetBufferAuthorityInstruction (
0 commit comments