Skip to content

Commit

Permalink
bump zombienet version v1.3.82 (paritytech#2396)
Browse files Browse the repository at this point in the history
Includes:
 - bump `pjs` modules versions
- re-enable test disable in
paritytech#2294

---------

Co-authored-by: Bastian Köcher <info@kchr.de>
  • Loading branch information
pepoviola and bkchr committed Nov 21, 2023
1 parent 1ab8d1f commit 027524e
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ pub mod pallet {
/// A [`SignedExtension`] that skips the wrapped extension if the dispatchable is feeless.
#[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)]
#[scale_info(skip_type_params(T))]
pub struct SkipCheckIfFeeless<T: Config, S: SignedExtension>(pub S, sp_std::marker::PhantomData<T>);
pub struct SkipCheckIfFeeless<T, S>(pub S, sp_std::marker::PhantomData<T>);

impl<T: Config, S: SignedExtension> sp_std::fmt::Debug for SkipCheckIfFeeless<T, S> {
impl<T, S: Encode> sp_std::fmt::Debug for SkipCheckIfFeeless<T, S> {
#[cfg(feature = "std")]
fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
write!(f, "SkipCheckIfFeeless<{:?}>", self.0.encode())
Expand All @@ -90,9 +90,8 @@ impl<T: Config, S: SignedExtension> sp_std::fmt::Debug for SkipCheckIfFeeless<T,
}
}

impl<T: Config + Send + Sync, S: SignedExtension> SkipCheckIfFeeless<T, S> {
/// utility constructor. Used only in client/factory code.
pub fn from(s: S) -> Self {
impl<T, S> From<S> for SkipCheckIfFeeless<T, S> {
fn from(s: S) -> Self {
Self(s, sp_std::marker::PhantomData)
}
}
Expand All @@ -106,7 +105,11 @@ where
type Call = S::Call;
type AdditionalSigned = S::AdditionalSigned;
type Pre = (Self::AccountId, Option<<S as SignedExtension>::Pre>);
const IDENTIFIER: &'static str = "SkipCheckIfFeeless";
// From the outside this extension should be "invisible", because it just extends the wrapped
// extension with an extra check in `pre_dispatch` and `post_dispatch`. Thus, we should forward
// the identifier of the wrapped extension to let wallets see this extension as it would only be
// the wrapped extension itself.
const IDENTIFIER: &'static str = S::IDENTIFIER;

fn additional_signed(&self) -> Result<Self::AdditionalSigned, TransactionValidityError> {
self.0.additional_signed()
Expand Down

0 comments on commit 027524e

Please sign in to comment.