Fix StateComputeDataCommitment
This commit is contained in:
parent
c8cef1cb7e
commit
b6b56320bf
@ -147,15 +147,7 @@ func (s SealingAPIAdapter) StateComputeDataCommitment(ctx context.Context, maddr
|
|||||||
return cid.Undef, xerrors.Errorf("failed to unmarshal TipSetToken to TipSetKey: %w", err)
|
return cid.Undef, xerrors.Errorf("failed to unmarshal TipSetToken to TipSetKey: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ts, err := s.delegate.ChainGetTipSet(ctx, tsk)
|
nv, err := s.delegate.StateNetworkVersion(ctx, tsk)
|
||||||
if err != nil {
|
|
||||||
return cid.Cid{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// using parent ts because the migration won't be run on the first nv13
|
|
||||||
// tipset we apply StateCall to (because we don't run migrations in StateCall
|
|
||||||
// and just apply to parent state)
|
|
||||||
nv, err := s.delegate.StateNetworkVersion(ctx, ts.Parents())
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cid.Cid{}, err
|
return cid.Cid{}, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user