Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk committed Oct 13, 2022
1 parent 6034d2e commit 55b1186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/relay-chain-inprocess-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ where
relay_parent: PHash,
key: &[u8],
) -> RelayChainResult<Option<StorageValue>> {
let state = self.backend.state_at(relay_parent)?;
let state = self.backend.state_at(&relay_parent)?;
state.storage(key).map_err(RelayChainError::GenericError)
}

Expand All @@ -189,7 +189,7 @@ where
relay_parent: PHash,
relevant_keys: &Vec<Vec<u8>>,
) -> RelayChainResult<StorageProof> {
let state_backend = self.backend.state_at(relay_parent)?;
let state_backend = self.backend.state_at(&relay_parent)?;

sp_state_machine::prove_read(state_backend, relevant_keys)
.map_err(RelayChainError::StateMachineError)
Expand Down

0 comments on commit 55b1186

Please sign in to comment.