Skip to content

Commit

Permalink
Owner doesn't need to sign init transactions (solana-labs#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots authored Sep 24, 2020
1 parent 5bf19b6 commit 7903e62
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions token/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ fn command_create_token(
minimum_balance_for_rent_exemption
+ fee_calculator.calculate_fee(&transaction.message(), None),
)?;
let mut signers = vec![
config.fee_payer.as_ref(),
config.owner.as_ref(),
token.as_ref(),
];
let mut signers = vec![config.fee_payer.as_ref(), token.as_ref()];
unique_signers!(signers);
transaction.sign(&signers, recent_blockhash);
Ok(Some(transaction))
Expand Down Expand Up @@ -169,11 +165,7 @@ fn command_create_account(
minimum_balance_for_rent_exemption
+ fee_calculator.calculate_fee(&transaction.message(), None),
)?;
let mut signers = vec![
config.fee_payer.as_ref(),
account.as_ref(),
config.owner.as_ref(),
];
let mut signers = vec![config.fee_payer.as_ref(), account.as_ref()];
unique_signers!(signers);
transaction.sign(&signers, recent_blockhash);
Ok(Some(transaction))
Expand Down

0 comments on commit 7903e62

Please sign in to comment.