Use MaxEncodedLen trait from new parity-scale-codec v2.2 (#3412)

* Use MaxEncodedLen trait from new parity-scale-codec v2.2

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Igor Matuszewski
2021-07-05 23:11:03 +02:00
committed by GitHub
parent e80475ce4e
commit 037f22342b
11 changed files with 166 additions and 213 deletions
@@ -14,7 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
use frame_support::traits::MaxEncodedLen;
use parity_util_mem::MallocSizeOf;
use sp_runtime::traits::CheckEqual;
@@ -23,7 +22,7 @@ use sp_runtime::traits::CheckEqual;
fixed_hash::construct_fixed_hash! {
/// Hash type used in Millau chain.
#[derive(MallocSizeOf, MaxEncodedLen)]
#[derive(MallocSizeOf)]
pub struct MillauHash(64);
}