You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Cargo.toml// parity-scale-codec = { version = "3.1.3", features = ["max-encoded-len"] }use parity_scale_codec::{Decode,Encode,HasCompact,MaxEncodedLen};#[derive(Encode,Decode,MaxEncodedLen)]pubstructBroken<T:HasCompact>{#[codec(compact)]compact:T,}
This is the error:
no function or associated item named `max_encoded_len` found for type parameter `T` in the current scope
items from traits can only be used if the type parameter is bounded by the trait
1138: Add macro to list currency id constants (list_assets) r=benluelo a=benluelo
## Description
I noticed the list_assets function and the defined `CurrencyId` consts were going out of sync periodically, so I added a simple macro to define the `list_assets` function.
NOTE: parity-scale-codec-derive is broken as of 3.1.3: paritytech/parity-scale-codec#348, added a patch.
Co-authored-by: benluelo <[email protected]>
With this code:
This is the error:
Expanded:
Works with
parity-scale-codec-derive
pinned to 3.1.2 (expanded output shown):This is the commit that broke it: 24c4856 since 361a0bf works.
The text was updated successfully, but these errors were encountered: