Skip to content

Commit

Permalink
Use proper update store function
Browse files Browse the repository at this point in the history
  • Loading branch information
karbyshev committed Apr 25, 2024
1 parent fe91624 commit 8cb6eff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/sdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,7 @@ impl<U: WalletStorage> Wallet<U> {
address: Address,
keys: ValidatorKeys,
) -> Result<(), LoadStoreError> {
self.utils
.clone()
.update_store(|store| store.add_validator_data(address, keys))
self.update_store(|store| store.add_validator_data(address, keys))
}

/// Returns the validator data, if it exists.
Expand Down

0 comments on commit 8cb6eff

Please sign in to comment.