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

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Oct 4, 2023
1 parent 50ad115 commit 4b18b8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pallet-ismp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ impl<T: Config> Pallet<T> {
}
Ok(MessageResult::Response(res)) => {
let StateMachineHeight { id, height } = match message {
Message::Response(ref request) => request.proof.height.clone(),
Message::Response(ref response) => response.proof().height.clone(),
_ => unreachable!(),
};
// update the messaging heights
Expand Down
16 changes: 6 additions & 10 deletions pallet-ismp/src/mocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// limitations under the License.

//! Mock implementations for tests & benchmarks
#![allow(missing_docs)]
#![allow(missing_docs, dead_code, unused_imports)]
pub mod ismp;

use crate as pallet_ismp;
Expand All @@ -36,15 +36,11 @@ type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;

frame_support::construct_runtime!(
pub enum Test where
Block = Block,
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
Ismp: pallet_ismp::{Pallet, Storage, Call, Event<T>},
}
pub enum Test {
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
Ismp: pallet_ismp::{Pallet, Storage, Call, Event<T>},
}
);

pub struct StateMachineProvider;
Expand Down

0 comments on commit 4b18b8a

Please sign in to comment.