Skip to content

Commit

Permalink
Derive serde for DispatchInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Dec 6, 2023
1 parent 49b7d20 commit 66af818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frame/support/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ pub trait PaysFee<T> {

/// Explicit enum to denote if a transaction pays fee or not.
#[derive(Clone, Copy, Eq, PartialEq, RuntimeDebug, Encode, Decode, TypeInfo)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
pub enum Pays {
/// Transactor will pay related fees.
Yes,
Expand Down Expand Up @@ -225,6 +226,7 @@ impl<'a> OneOrMany<DispatchClass> for &'a [DispatchClass] {

/// A bundle of static information collected from the `#[pallet::weight]` attributes.
#[derive(Clone, Copy, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode, TypeInfo)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
pub struct DispatchInfo {
/// Weight of this transaction.
pub weight: Weight,
Expand Down

0 comments on commit 66af818

Please sign in to comment.