Skip to content

Commit 18b8f03

Browse files
committed
fix build
1 parent 95455b3 commit 18b8f03

File tree

1 file changed

+3
-12
lines changed
  • mev-programs/priority-fee-distribution-cli/src

1 file changed

+3
-12
lines changed

mev-programs/priority-fee-distribution-cli/src/main.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ use jito_priority_fee_distribution_sdk::{
1010
use solana_client::{rpc_client::RpcClient, rpc_config::RpcSendTransactionConfig};
1111
use solana_sdk::{
1212
compute_budget::ComputeBudgetInstruction,
13-
1413
instruction::Instruction,
15-
1614
pubkey::Pubkey,
17-
18-
signer::{{keypair::read_keypair_file, Signer},
15+
signer::{keypair::read_keypair_file, Signer},
1916
transaction::Transaction,
20-
, Signer},
2117
};
2218

2319
#[derive(Parser)]
@@ -292,7 +288,7 @@ fn main() -> anyhow::Result<()> {
292288
bump,
293289
go_live_epoch,
294290
} => {
295-
let authority_pubkey = authority_keypair.pubkey();
291+
let authority_pubkey = Pubkey::from_str(&authority)?;
296292
let expired_funds_account_pubkey = Pubkey::from_str(&expired_funds_account)?;
297293

298294
let config = Config {
@@ -321,12 +317,7 @@ fn main() -> anyhow::Result<()> {
321317

322318
let serialized_data = instruction.data;
323319
let base58_data = bs58::encode(serialized_data).into_string();
324-
println!("Base58 Serialized Data: {}", base58_data);*/
325-
let mut transaction =
326-
solana_sdk::transaction::Transaction::new_with_payer(&[instruction], None);
327-
transaction.sign(&[&authority_keypair], client.get_latest_blockhash()?);
328-
let signature = client.send_and_confirm_transaction_with_spinner(&transaction)?;
329-
println!("Transaction Signature: {}", signature);
320+
println!("Base58 Serialized Data: {}", base58_data);
330321
}
331322

332323
Commands::Initialize {

0 commit comments

Comments
 (0)