diff --git a/pkg/apitypes/query_request.go b/pkg/apitypes/query_request.go index 50668df..79f7a9b 100644 --- a/pkg/apitypes/query_request.go +++ b/pkg/apitypes/query_request.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Kaleido, Inc. +// Copyright © 2024 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // @@ -24,6 +24,7 @@ import ( type QueryRequest struct { Headers RequestHeaders `json:"headers"` ffcapi.TransactionInput + BlockNumber *string `json:"blockNumber,omitempty"` } // QueryResponse is the response payload for a query diff --git a/pkg/ffcapi/method_call.go b/pkg/ffcapi/method_call.go index 613496f..9c61d48 100644 --- a/pkg/ffcapi/method_call.go +++ b/pkg/ffcapi/method_call.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Kaleido, Inc. +// Copyright © 2024 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // @@ -28,7 +28,7 @@ import ( // detected by the back-end connector. type QueryInvokeRequest struct { TransactionInput - BlockNumber *fftypes.FFBigInt `json:"blockNumber,omitempty"` + BlockNumber *string `json:"blockNumber,omitempty"` } type QueryInvokeResponse struct { diff --git a/pkg/fftm/route__root_command.go b/pkg/fftm/route__root_command.go index cb8407a..81af0ee 100644 --- a/pkg/fftm/route__root_command.go +++ b/pkg/fftm/route__root_command.go @@ -1,4 +1,4 @@ -// Copyright © 2023 Kaleido, Inc. +// Copyright © 2024 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // @@ -101,6 +101,7 @@ var postRootCommand = func(m *manager) *ffapi.Route { } res, _, err := m.connector.QueryInvoke(r.Req.Context(), &ffcapi.QueryInvokeRequest{ TransactionInput: tReq.TransactionInput, + BlockNumber: tReq.BlockNumber, }) if err != nil { return nil, err