From c93b9d93e76976a2f80199fbcd371a607c85e3e9 Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu Date: Thu, 17 Sep 2020 18:16:22 +0800 Subject: [PATCH] Add SetCodeWithoutChecksCall --- src/frame/system.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/frame/system.rs b/src/frame/system.rs index b6ae0626bdd..1e5526da039 100644 --- a/src/frame/system.rs +++ b/src/frame/system.rs @@ -156,6 +156,15 @@ pub struct SetCodeCall<'a, T: System> { pub code: &'a [u8], } +/// Arguments for updating the runtime code without checks +#[derive(Clone, Debug, Eq, PartialEq, Call, Encode)] +pub struct SetCodeWithoutChecksCall<'a, T: System> { + /// Runtime marker. + pub _runtime: PhantomData, + /// Runtime wasm blob. + pub code: &'a [u8], +} + /// A phase of a block's execution. #[derive(Clone, Debug, Eq, PartialEq, Decode)] pub enum Phase {