aboutsummaryrefslogtreecommitdiffstats
path: root/utils/merkletrie/iter.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/merkletrie/iter.go')
-rw-r--r--utils/merkletrie/iter.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/merkletrie/iter.go b/utils/merkletrie/iter.go
index c84f6fc..e3f3055 100644
--- a/utils/merkletrie/iter.go
+++ b/utils/merkletrie/iter.go
@@ -83,6 +83,10 @@ func newIter(root noder.Noder, base noder.Path) (*Iter, error) {
base: base,
}
+ if root == nil {
+ return ret, nil
+ }
+
frame, err := frame.New(root)
if err != nil {
return nil, err