From 14bdcac7b16b47635253d9d2fc4dc99a1a55ef84 Mon Sep 17 00:00:00 2001 From: wojciechos Date: Fri, 8 Dec 2023 19:03:05 +0300 Subject: [PATCH] Correct supported spec version to v0.6.0 in starknet_specVersion (#1536) --- rpc/handlers.go | 2 +- rpc/handlers_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/handlers.go b/rpc/handlers.go index ab2f65d795..e66ba8e092 100644 --- a/rpc/handlers.go +++ b/rpc/handlers.go @@ -1666,7 +1666,7 @@ func (h *Handler) callAndLogErr(f func() error, msg string) { } func (h *Handler) SpecVersion() (string, *jsonrpc.Error) { - return "0.6.0-rc5", nil + return "0.6.0", nil } func (h *Handler) LegacySpecVersion() (string, *jsonrpc.Error) { diff --git a/rpc/handlers_test.go b/rpc/handlers_test.go index d788495ea1..593b1c4a79 100644 --- a/rpc/handlers_test.go +++ b/rpc/handlers_test.go @@ -3684,7 +3684,7 @@ func TestSpecVersion(t *testing.T) { handler := rpc.New(nil, nil, 0, nil, nil, nil, "", nil) version, rpcErr := handler.SpecVersion() require.Nil(t, rpcErr) - require.Equal(t, "0.6.0-rc5", version) + require.Equal(t, "0.6.0", version) legacyVersion, rpcErr := handler.LegacySpecVersion() require.Nil(t, rpcErr)