Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 68db5f7

Browse files
committed
Port cli to token2
1 parent 2815165 commit 68db5f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

token/cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ fn command_create_token(config: &Config, decimals: u8) -> CommmandResult {
8585
initialize_mint(
8686
&spl_token::id(),
8787
&token.pubkey(),
88+
&config.owner.pubkey(),
8889
None,
89-
Some(&config.owner.pubkey()),
90-
0,
9190
decimals,
9291
)?,
9392
],
@@ -154,10 +153,11 @@ fn command_assign(config: &Config, account: Pubkey, new_owner: Pubkey) -> Commma
154153
);
155154

156155
let mut transaction = Transaction::new_with_payer(
157-
&[set_owner(
156+
&[set_authority(
158157
&spl_token::id(),
159158
&account,
160-
&new_owner,
159+
Some(&new_owner),
160+
AuthorityType::AccountHolder,
161161
&config.owner.pubkey(),
162162
&[],
163163
)?],

0 commit comments

Comments
 (0)