Skip to content

implement parity_scale_codec::DecodeWithMemTracking for primitive types #912

Open
@xlc

Description

@xlc

I am getting this error

error[E0277]: the trait bound `H256: parity_scale_codec::DecodeWithMemTracking` is not satisfied
    --> /Users/xiliangchen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-41.1.0/src/traits/mod.rs:1085:16
     |
1085 |     type Output = sp_core::H256;
     |                   ^^^^^^^^^^^^^ the trait `parity_scale_codec::DecodeWithMemTracking` is not implemented for `H256`

so we need DecodeWithMemTracking implemented for H256 and other primitive types

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions