simplify v3 claims map access
This commit is contained in:
parent
06f13f8e00
commit
9ce63c1211
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user