Add missing check in datacap for each
This commit is contained in:
parent
70dc920f8c
commit
d9df433e98
@ -54,6 +54,9 @@ func forEachClient(store adt.Store, ver actors.Version, root rootFunc, cb func(a
|
||||
}
|
||||
|
||||
a, err := address.NewIDAddress(id)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("creating ID address from actor ID: %w", err)
|
||||
}
|
||||
|
||||
return cb(a, big.Div(dcap, verifreg.DataCapGranularity))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user