Skip to content

Commit

Permalink
Review fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed May 14, 2023
1 parent d12ebf8 commit 375f21b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1952,9 +1952,8 @@ fn idl_set_buffer(
}
};

// print only mdde
if authority.is_some() {
let transaction = TransactionInstruction {
let instruction = TransactionInstruction {
program_id: set_buffer_ix.program_id,
accounts: set_buffer_ix
.accounts
Expand All @@ -1971,7 +1970,7 @@ fn idl_set_buffer(
);
println!(
" {}",
anchor_lang::__private::base64::encode(&transaction.try_to_vec()?)
anchor_lang::__private::base64::encode(&instruction.try_to_vec()?)
);
} else {
// Build the transaction.
Expand Down Expand Up @@ -2135,7 +2134,7 @@ fn idl_close_account(
};

if authority.is_some() {
let transaction = TransactionInstruction {
let instruction = TransactionInstruction {
program_id: ix.program_id,
accounts: ix.accounts.iter().map(TransactionAccount::from).collect(),
data: ix.data,
Expand All @@ -2147,7 +2146,7 @@ fn idl_close_account(
);
println!(
" {}",
anchor_lang::__private::base64::encode(&transaction.try_to_vec()?)
anchor_lang::__private::base64::encode(&instruction.try_to_vec()?)
);
} else {
// Send transaction.
Expand Down

0 comments on commit 375f21b

Please sign in to comment.