diff --git a/services/network_service.go b/services/network_service.go index ce9f879..f32a901 100644 --- a/services/network_service.go +++ b/services/network_service.go @@ -92,7 +92,7 @@ func (s *NetworkAPIService) NetworkOptions( Version: &types.Version{ RosettaVersion: types.RosettaAPIVersion, NodeVersion: NodeVersion, - MiddlewareVersion: &MiddlewareVersion, + MiddlewareVersion: types.String(MiddlewareVersion), }, Allow: &types.Allow{ OperationStatuses: bitcoin.OperationStatuses, diff --git a/services/network_service_test.go b/services/network_service_test.go index 10dbd28..43fd014 100644 --- a/services/network_service_test.go +++ b/services/network_service_test.go @@ -27,7 +27,7 @@ import ( ) var ( - middlewareVersion = "0.0.6" + middlewareVersion = "0.0.7" defaultNetworkOptions = &types.NetworkOptionsResponse{ Version: &types.Version{ RosettaVersion: types.RosettaAPIVersion, diff --git a/services/types.go b/services/types.go index 9dce8ab..e8cf044 100644 --- a/services/types.go +++ b/services/types.go @@ -39,15 +39,13 @@ const ( // inlineFetchLimit is the maximum number // of transactions to fetch inline. inlineFetchLimit = 100 -) -var ( // MiddlewareVersion is the version // of rosetta-bitcoin. We set this as a // variable instead of a constant because // we typically need the pointer of this // value. - MiddlewareVersion = "0.0.6" + MiddlewareVersion = "0.0.7" ) // Client is used by the servicers to get Peer information