Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine committed Nov 8, 2023
1 parent 41c0b5f commit 7ea00cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x/merkledb/trieview.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ func newTrieView(
parentTrie TrieView,
changes ViewChanges,
) (*trieView, error) {
root := maybe.Bind(parentTrie.getRoot(), (*node).clone)

newView := &trieView{
root: root,
root: maybe.Bind(parentTrie.getRoot(), (*node).clone),
db: db,
parentTrie: parentTrie,
changes: newChangeSummary(len(changes.BatchOps) + len(changes.MapOps)),
Expand Down

0 comments on commit 7ea00cb

Please sign in to comment.