fix argument order
This commit is contained in:
parent
931befabb0
commit
8ca7381402
|
@ -17,9 +17,9 @@ import { getSigners } from './internal';
|
||||||
* @param connection Connection to use
|
* @param connection Connection to use
|
||||||
* @param payer Payer of the transaction fees
|
* @param payer Payer of the transaction fees
|
||||||
* @param account Address of the account
|
* @param account Address of the account
|
||||||
* @param newAuthority New authority of the account
|
* @param currentAuthority Current authority of the specified type
|
||||||
* @param authorityType Type of authority to set
|
* @param authorityType Type of authority to set
|
||||||
* @param currentAuthority Current authority of the account
|
* @param newAuthority New authority of the account
|
||||||
* @param multiSigners Signing accounts if `currentAuthority` is a multisig
|
* @param multiSigners Signing accounts if `currentAuthority` is a multisig
|
||||||
* @param confirmOptions Options for confirming the transaction
|
* @param confirmOptions Options for confirming the transaction
|
||||||
* @param programId SPL Token program account
|
* @param programId SPL Token program account
|
||||||
|
@ -30,9 +30,9 @@ export async function setAuthority(
|
||||||
connection: Connection,
|
connection: Connection,
|
||||||
payer: Signer,
|
payer: Signer,
|
||||||
account: PublicKey,
|
account: PublicKey,
|
||||||
newAuthority: PublicKey | null,
|
|
||||||
authorityType: AuthorityType,
|
|
||||||
currentAuthority: Signer | PublicKey,
|
currentAuthority: Signer | PublicKey,
|
||||||
|
authorityType: AuthorityType,
|
||||||
|
newAuthority: PublicKey | null,
|
||||||
multiSigners: Signer[] = [],
|
multiSigners: Signer[] = [],
|
||||||
confirmOptions?: ConfirmOptions,
|
confirmOptions?: ConfirmOptions,
|
||||||
programId = TOKEN_PROGRAM_ID
|
programId = TOKEN_PROGRAM_ID
|
||||||
|
@ -42,9 +42,9 @@ export async function setAuthority(
|
||||||
const transaction = new Transaction().add(
|
const transaction = new Transaction().add(
|
||||||
createSetAuthorityInstruction(
|
createSetAuthorityInstruction(
|
||||||
account,
|
account,
|
||||||
newAuthority,
|
|
||||||
authorityType,
|
|
||||||
currentAuthorityPublicKey,
|
currentAuthorityPublicKey,
|
||||||
|
authorityType,
|
||||||
|
newAuthority,
|
||||||
multiSigners,
|
multiSigners,
|
||||||
programId
|
programId
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue