Skip to content

Incorrect schema for MerkleTree #5520

@0x009922

Description

@0x009922

In the schema, MerkleTree<T> is represented as Vec<HashOf<T>>:

"MerkleTree<SignedTransaction>": {
"Vec": "HashOf<SignedTransaction>"
},
"MerkleTree<TransactionEntrypoint>": {
"Vec": "HashOf<TransactionEntrypoint>"
},
"MerkleTree<TransactionResult>": {
"Vec": "HashOf<TransactionResult>"
},

While MerkleTree<T> is actually encoded as Vec<Option<HashOf>>:

pub struct MerkleTree<T>(Vec<Option<HashOf<T>>>);

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions