Skip to content

Commit

Permalink
fix: return serialized root in state root, not its mapping to a scala…
Browse files Browse the repository at this point in the history
…r field
  • Loading branch information
gballet committed Oct 10, 2023
1 parent 332dfe2 commit 55bcb57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trie/verkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ func (trie *VerkleTrie) Commit(_ bool) (common.Hash, *trienode.NodeSet, error) {
}
batch.Write()

// Serialize root commitment form
rootH := root.Hash().BytesLE()
return common.BytesToHash(rootH[:]), nil, nil
return trie.Hash(), nil, nil
}

// NodeIterator returns an iterator that returns nodes of the trie. Iteration
Expand Down

0 comments on commit 55bcb57

Please sign in to comment.