Skip to content

Commit

Permalink
cr feedback, code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Oct 4, 2024
1 parent 1a55c3e commit 665a370
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ tests/polkadotjs_test/node_modules
!tests/polkadotjs_test/test/*.wasm

# mac specific
.DS_Store
.DS_Store
21 changes: 0 additions & 21 deletions pkg/trie/triedb/child_tries.go

This file was deleted.

1 change: 0 additions & 1 deletion pkg/trie/triedb/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func newEncodedValue[H hash.Hash](
// Check and get new new value hash
switch cr := childRef.(type) {
case HashChildReference[H]:
// if bytes.Equal(cr, common.EmptyHash.ToBytes()) {
empty := *new(H)
if cr.Hash == empty {
panic("new external value are always added before encoding a node")
Expand Down

0 comments on commit 665a370

Please sign in to comment.