Skip to content

Have AccountComponent::new() verify consistency between storage and metadata #2634

@igamigo

Description

@igamigo

AccountComponent::new() currently accepts storage and metadata without validating that they are consistent with each other (e.g., that the storage slots match what the metadata schema describes). We should add a consistency check so that invalid combinations are rejected at construction time. Originally commented on here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    standardsRelated to standard note scripts or account components

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions