Don't return nil in StateSectorPreCommitInfo
This commit is contained in:
parent
9fe3649dd2
commit
7d540905ac
@ -793,7 +793,7 @@ func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.A
|
||||
if err != nil {
|
||||
return miner.SectorPreCommitOnChainInfo{}, err
|
||||
} else if pci == nil {
|
||||
return nil, xerrors.Errorf("precommit info is not exists")
|
||||
return miner.SectorPreCommitOnChainInfo{}, xerrors.Errorf("precommit info is not exists")
|
||||
}
|
||||
|
||||
return *pci, err
|
||||
|
Loading…
Reference in New Issue
Block a user