substrate-nft
substrate-nft copied to clipboard
error on tests
Hey, just try to make
cargo +nightly test
got error:
error[E0277]: the trait bound `ink_env::AccountId: TypeInfo` is not satisfied
--> lib.rs:9:5
|
9 | / pub struct NFT {
10 | | owner: AccountId,
11 | | id_to_owner: ink_storage::collections::HashMap<u64, AccountId>,
12 | | owner_to_token_count: ink_storage::collections::HashMap<AccountId, u64>,
13 | | }
| |_____^ the trait `TypeInfo` is not implemented for `ink_env::AccountId`
|
note: required by a bound in `FieldsBuilder::<NamedFields>::field_of`
rustup:
Default host: x86_64-unknown-linux-gnu
rustup home: /home/******/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
active toolchain
----------------
stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)
Hey @moneyzmey, thanks for opening an issue - I think it is worth to rewrite this contract since a few things changed since 3.0.0-rc3 ink lang version 👍
Many thanks