Skip to content

Storage derive problems #2548

@Daanvdplas

Description

@Daanvdplas

See how the storage item has different traits derived compared to here. This is because of the error:

the trait `StorageLayout` is not implemented

Using the #[ink::storage_item] macro also doesn't work because then:

the trait `WrapperTypeEncode`, `StorableHint<()>` is not implemented

Preferably you have one struct carrying the main storage macro (#[ink::storage], and everything that are sub structs carry the storage_item macro, but this doesn't work. The docs also directs devs to use it like this (ref)

Metadata

Metadata

Assignees

Labels

P-highHigh priority issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions