Skip to content

Commit ce22986

Browse files
authored
Add SetCodeWithoutChecksCall (paritytech#166)
1 parent 4ed8e37 commit ce22986

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/frame/system.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ pub struct SetCodeCall<'a, T: System> {
156156
pub code: &'a [u8],
157157
}
158158

159+
/// Arguments for updating the runtime code without checks
160+
#[derive(Clone, Debug, Eq, PartialEq, Call, Encode)]
161+
pub struct SetCodeWithoutChecksCall<'a, T: System> {
162+
/// Runtime marker.
163+
pub _runtime: PhantomData<T>,
164+
/// Runtime wasm blob.
165+
pub code: &'a [u8],
166+
}
167+
159168
/// A phase of a block's execution.
160169
#[derive(Clone, Debug, Eq, PartialEq, Decode)]
161170
pub enum Phase {

0 commit comments

Comments
 (0)