Skip to content

Wrong contract storage with tuple keys #1913

@tupui

Description

@tupui

I have the following types:

#[contracttype]
pub enum CollectionKey {
    Collections,                // vec contract ID
    Collectibles(Address, u32), // (contract ID; Token ID) - Owner
    OwnerCollectibles(Address), // Owner - (contract ID; Token ID)
}

On lab it does not show properly the key if it is a tuple. See on Stellar.Expert the correct behaviour.

Here CDNIAJKMJ3FHIIYU7HOJCSJEJNPPMRNU2D7XP2GX2O4CYVU7XAX6XR7Z

Image

And this is what we have on lab

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo (Ready for Dev)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions