This commit is contained in:
vyzo 2022-11-09 11:38:16 +02:00
parent cc79d7f79c
commit 378c9d37d0

View File

@ -577,7 +577,8 @@ func (st *StateTree) ForEach(f func(address.Address, *types.Actor) error) error
return f(addr, types.AsActorV5(&act))
})
} else {
}
var act types.Actor
return st.root.ForEach(&act, func(k string) error {
act := act // copy
@ -594,7 +595,6 @@ func (st *StateTree) ForEach(f func(address.Address, *types.Actor) error) error
return f(addr, &act)
})
}
}
// Version returns the version of the StateTree data structure in use.