Skip to content

Commit 4699780

Browse files
committed
fix(cli): increase compute budget to avoid serde issues, add print statements
1 parent 36c21a2 commit 4699780

File tree

1 file changed

+9
-2
lines changed
  • target_chains/solana/cli/src

1 file changed

+9
-2
lines changed

target_chains/solana/cli/src/main.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,10 @@ pub fn process_write_encoded_vaa_and_post_price_update(
431431
update_instructions,
432432
&vec![payer, &price_update_keypair],
433433
)?;
434-
434+
println!(
435+
"Price update posted to account: {}",
436+
price_update_keypair.pubkey()
437+
);
435438
Ok(price_update_keypair.pubkey())
436439
}
437440

@@ -483,7 +486,7 @@ pub fn process_write_encoded_vaa_and_post_twap_update(
483486
)?;
484487

485488
// Transaction 3: Write remaining VAA data and verify both VAAs
486-
let mut verify_instructions = vec![ComputeBudgetInstruction::set_compute_unit_limit(400_000)];
489+
let mut verify_instructions = vec![ComputeBudgetInstruction::set_compute_unit_limit(850_000)];
487490
verify_instructions.extend(write_remaining_data_and_verify_vaa_ixs(
488491
&payer.pubkey(),
489492
start_vaa,
@@ -518,6 +521,10 @@ pub fn process_write_encoded_vaa_and_post_twap_update(
518521
post_instructions,
519522
&vec![payer, &twap_update_keypair],
520523
)?;
524+
println!(
525+
"TWAP update posted to account: {}",
526+
twap_update_keypair.pubkey()
527+
);
521528

522529
Ok(twap_update_keypair.pubkey())
523530
}

0 commit comments

Comments
 (0)