simplify v3 claims map access

This commit is contained in:
Steven Allen 2021-01-18 14:56:22 -08:00
parent 06f13f8e00
commit 9ce63c1211

View File

@ -52,7 +52,7 @@ func (s *state3) TotalCommitted() (Claim, error) {
}
func (s *state3) MinerPower(addr address.Address) (Claim, bool, error) {
claims, err := adt3.AsMap(s.store, s.Claims, builtin3.DefaultHamtBitwidth)
claims, err := s.claims()
if err != nil {
return Claim{}, false, err
}