Skip to content

Commit

Permalink
Add SetCodeWithoutChecksCall (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu authored Sep 17, 2020
1 parent 4ed8e37 commit ce22986
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/frame/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>,
/// Runtime wasm blob.
pub code: &'a [u8],
}

/// A phase of a block's execution.
#[derive(Clone, Debug, Eq, PartialEq, Decode)]
pub enum Phase {
Expand Down

0 comments on commit ce22986

Please sign in to comment.