Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on tests #1

Open
moneyzmey opened this issue Dec 13, 2021 · 2 comments
Open

error on tests #1

moneyzmey opened this issue Dec 13, 2021 · 2 comments

Comments

@moneyzmey
Copy link

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)
@nickshulhin
Copy link
Member

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 👍

@moneyzmey
Copy link
Author

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants