Add missing check in datacap for each

This commit is contained in:
Geoff Stuart 2022-11-22 15:40:44 -05:00
parent 70dc920f8c
commit d9df433e98

View File

@ -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))
})