Merge pull request #9706 from filecoin-project/gstuart/datacap-for-each-check
fix: Add missing check in datacap for-each
This commit is contained in:
commit
0a555eda90
@ -54,6 +54,9 @@ func forEachClient(store adt.Store, ver actors.Version, root rootFunc, cb func(a
|
|||||||
}
|
}
|
||||||
|
|
||||||
a, err := address.NewIDAddress(id)
|
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))
|
return cb(a, big.Div(dcap, verifreg.DataCapGranularity))
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user