More actor updates
This commit is contained in:
parent
1efb8b4cc0
commit
5a3ab5c5f0
@ -31,7 +31,7 @@ func SetupStoragePowerActor(bs bstore.Blockstore) (*types.Actor, error) {
|
|||||||
MinerCount: 0,
|
MinerCount: 0,
|
||||||
MinerAboveMinPowerCount: 0,
|
MinerAboveMinPowerCount: 0,
|
||||||
CronEventQueue: emptyhamt,
|
CronEventQueue: emptyhamt,
|
||||||
LastEpochTick: 0,
|
FirstCronEpoch: 0,
|
||||||
Claims: emptyhamt,
|
Claims: emptyhamt,
|
||||||
ProofValidationBatch: nil,
|
ProofValidationBatch: nil,
|
||||||
}
|
}
|
||||||
|
@ -696,7 +696,7 @@ func (sm *StateManager) MarketBalance(ctx context.Context, addr address.Address,
|
|||||||
return api.MarketBalance{}, err
|
return api.MarketBalance{}, err
|
||||||
}
|
}
|
||||||
if ehas {
|
if ehas {
|
||||||
out.Escrow, err = et.Get(addr)
|
out.Escrow, _, err = et.Get(addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return api.MarketBalance{}, xerrors.Errorf("getting escrow balance: %w", err)
|
return api.MarketBalance{}, xerrors.Errorf("getting escrow balance: %w", err)
|
||||||
}
|
}
|
||||||
@ -713,7 +713,7 @@ func (sm *StateManager) MarketBalance(ctx context.Context, addr address.Address,
|
|||||||
return api.MarketBalance{}, err
|
return api.MarketBalance{}, err
|
||||||
}
|
}
|
||||||
if lhas {
|
if lhas {
|
||||||
out.Locked, err = lt.Get(addr)
|
out.Locked, _, err = lt.Get(addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return api.MarketBalance{}, xerrors.Errorf("getting locked balance: %w", err)
|
return api.MarketBalance{}, xerrors.Errorf("getting locked balance: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user