From e7ebf1d3faa90d81ed9e810a21ab5cae8f432c69 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 10 Feb 2022 09:37:01 +0000 Subject: [PATCH] fix: impl MaxEncodedLen for SponsoringMode --- --- a/pallets/evm-contract-helpers/src/lib.rs +++ b/pallets/evm-contract-helpers/src/lib.rs @@ -1,6 +1,6 @@ #![cfg_attr(not(feature = "std"), no_std)] -use codec::{Decode, Encode}; +use codec::{Decode, Encode, MaxEncodedLen}; pub use pallet::*; pub use eth::*; use scale_info::TypeInfo; @@ -126,7 +126,7 @@ } } -#[derive(Encode, Decode, PartialEq, TypeInfo)] +#[derive(Encode, Decode, PartialEq, TypeInfo, MaxEncodedLen)] pub enum SponsoringModeT { Disabled, Allowlisted, -- gitstuff