Skip to content

Commit 181a4bf

Browse files
authored
Merge pull request #35 from holaplex/chore/cargo-clippy-fixes
chore: fix cargo clippy changes
2 parents a111790 + 8189238 commit 181a4bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/commands/create_atl.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ pub fn process_create_address_table_lookup(
9292
let instructions: Vec<Instruction> =
9393
vec![create_address_lookup_table_ix, extend_lookup_table_ix];
9494

95-
let latest_blockhash = client.get_latest_blockhash().unwrap();
95+
let latest_blockhash = client
96+
.get_latest_blockhash()
97+
.context("Failed to get latest blockhash")?;
98+
9699
let tx_hash = client.send_and_confirm_transaction(&Transaction::new_signed_with_payer(
97100
&instructions,
98101
Some(&keypair.pubkey()),

0 commit comments

Comments
 (0)