We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a111790 commit 8189238Copy full SHA for 8189238
cli/src/commands/create_atl.rs
@@ -92,7 +92,10 @@ pub fn process_create_address_table_lookup(
92
let instructions: Vec<Instruction> =
93
vec![create_address_lookup_table_ix, extend_lookup_table_ix];
94
95
- let latest_blockhash = client.get_latest_blockhash().unwrap();
+ let latest_blockhash = client
96
+ .get_latest_blockhash()
97
+ .context("Failed to get latest blockhash")?;
98
+
99
let tx_hash = client.send_and_confirm_transaction(&Transaction::new_signed_with_payer(
100
&instructions,
101
Some(&keypair.pubkey()),
0 commit comments