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

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Mar 4, 2022
1 parent bbf16b8 commit 0c003bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 1 addition & 2 deletions client/relay-chain-rpc-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,7 @@ impl RelayChainInterface for RelayChainRPCInterface {
.state_get_read_proof(storage_keys, Some(relay_parent))
.await
.map(|read_proof| {
let bytes = read_proof.proof.into_iter().map(|bytes| bytes.to_vec()).collect();
StorageProof::new(bytes)
StorageProof::new(read_proof.proof.into_iter().map(|bytes| bytes.to_vec()))
})
}

Expand Down
11 changes: 1 addition & 10 deletions primitives/parachain-inherent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub use mock::{MockValidationDataInherentDataProvider, MockXcmConfig};
pub const INHERENT_IDENTIFIER: InherentIdentifier = *b"sysi1337";

/// The inherent data that is passed by the collator to the parachain runtime.
#[derive(codec::Encode, codec::Decode, sp_core::RuntimeDebug, Clone, TypeInfo)]
#[derive(codec::Encode, codec::Decode, sp_core::RuntimeDebug, Clone, PartialEq, TypeInfo)]
pub struct ParachainInherentData {
pub validation_data: PersistedValidationData,
/// A storage proof of a predefined set of keys from the relay-chain.
Expand All @@ -70,15 +70,6 @@ pub struct ParachainInherentData {
pub horizontal_messages: BTreeMap<ParaId, Vec<InboundHrmpMessage>>,
}

impl PartialEq for ParachainInherentData {
fn eq(&self, other: &Self) -> bool {
self.validation_data == other.validation_data &&
self.relay_chain_state.compare(&other.relay_chain_state) &&
self.downward_messages == other.downward_messages &&
self.horizontal_messages == other.horizontal_messages
}
}

/// This struct provides ability to extend a message queue chain (MQC) and compute a new head.
///
/// MQC is an instance of a [hash chain] applied to a message queue. Using a hash chain it's
Expand Down

0 comments on commit 0c003bf

Please sign in to comment.