Skip to content

Commit

Permalink
fixed storing client counter
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvja committed Oct 19, 2023
1 parent a204f0e commit d510d2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ impl ClientExecutionContext for SolanaIbcStorage<'_, '_> {

impl ExecutionContext for SolanaIbcStorage<'_, '_> {
fn increase_client_counter(&mut self) -> Result {
let store = self.0.borrow_mut();
store.client_counter.checked_add(1).unwrap();
let mut store = self.0.borrow_mut();
store.client_counter = store.client_counter.checked_add(1).unwrap();
msg!("client_counter has increased to: {}", store.client_counter);
Ok(())
}
Expand Down

0 comments on commit d510d2e

Please sign in to comment.