Skip to content

Commit

Permalink
change deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Sep 13, 2023
1 parent 62f868b commit d01280d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ no-entrypoint = []
test-bpf = []

[dependencies]
borsh = "0.9.3"
borsh = "0.9"
num-derive = "0.3"
num-traits = "0.2"
serde = "1.0.137"
Expand Down
7 changes: 4 additions & 3 deletions program/src/stake_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ impl StakeAccount {
let target_epoch = clock.epoch;
let history = Some(stake_history);

let mut state = stake
.delegation
.stake_activating_and_deactivating(target_epoch, history);
let mut state =
stake
.delegation
.stake_activating_and_deactivating(target_epoch, history, None);

// `stake_activating_and_deactivating` counts deactivating stake both as
// part of the active lamports, and as part of the deactivating
Expand Down
6 changes: 3 additions & 3 deletions program/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::ops::Range;
use serde::Serialize;

use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
use solana_program::borsh::{get_instance_packed_len, try_from_slice_unchecked};
use solana_program::borsh0_10;
use solana_program::clock::Clock;
use solana_program::{
account_info::AccountInfo, clock::Epoch, entrypoint::ProgramResult, msg,
Expand Down Expand Up @@ -242,7 +242,7 @@ impl Lido {
);
return Err(LidoError::InvalidOwner.into());
}
let lido = try_from_slice_unchecked::<Lido>(&lido.data.borrow())?;
let lido = borsh0_10::try_from_slice_unchecked::<Lido>(&lido.data.borrow())?;
Ok(lido)
}

Expand All @@ -256,7 +256,7 @@ impl Lido {
maintainers: Maintainers::new_fill_default(max_maintainers),
..Default::default()
};
get_instance_packed_len(&lido_instance).unwrap()
borsh0_10::get_instance_packed_len(&lido_instance).unwrap()
}

/// Confirm that the given account is Solido's stSOL mint.
Expand Down

0 comments on commit d01280d

Please sign in to comment.