Fix v0/v1 API versions

This commit is contained in:
Łukasz Magiera
2021-04-16 00:20:13 +02:00
parent 35cf83d519
commit 4436c184ed
13 changed files with 75 additions and 29 deletions
+11
View File
@@ -46,4 +46,15 @@ func (w *WrapperV1Full) StateGetReceipt(ctx context.Context, msg cid.Cid, from t
return &ml.Receipt, nil
}
func (w *WrapperV1Full) Version(ctx context.Context) (api.APIVersion, error) {
ver, err := w.FullNode.Version(ctx)
if err != nil {
return api.APIVersion{}, err
}
ver.APIVersion = api.FullAPIVersion0
return ver, nil
}
var _ FullNode = &WrapperV1Full{}