Skip to content

Commit

Permalink
Update solana/solana-ibc/programs/solana-ibc/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Nazarewicz <[email protected]>
  • Loading branch information
dhruvja and mina86 authored Oct 15, 2024
1 parent f2ffe6a commit 3694c57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions solana/solana-ibc/programs/solana-ibc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,9 @@ pub mod solana_ibc {
let root = store.borrow().provable.hash().clone();
if previous_root != root {
msg!("Writing local consensus state");
let slot = Clock::get()?.slot;
let timestamp = Clock::get()?.unix_timestamp as u64;
let clock = Clock::get()?;
let slot = clock.slot;
let timestamp = clock.unix_timestamp as u64;
let storage = &mut store.borrow_mut().private;
storage
.add_local_consensus_state(slot, timestamp, root)
Expand Down

0 comments on commit 3694c57

Please sign in to comment.