From deb6b62ccc8f18650442e8ae70df146eb76d7d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Mon, 3 Jun 2024 17:19:42 +0200 Subject: [PATCH] lint --- tools/walletextension/rpcapi/blockchain_api.go | 1 + tools/walletextension/rpcapi/utils.go | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/walletextension/rpcapi/blockchain_api.go b/tools/walletextension/rpcapi/blockchain_api.go index 6e787824c0..756e3d1546 100644 --- a/tools/walletextension/rpcapi/blockchain_api.go +++ b/tools/walletextension/rpcapi/blockchain_api.go @@ -3,6 +3,7 @@ package rpcapi import ( "context" "encoding/json" + "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/common" diff --git a/tools/walletextension/rpcapi/utils.go b/tools/walletextension/rpcapi/utils.go index 43757b186c..6d4f3995e7 100644 --- a/tools/walletextension/rpcapi/utils.go +++ b/tools/walletextension/rpcapi/utils.go @@ -203,14 +203,6 @@ func extractUserID(ctx context.Context, _ *Services) ([]byte, error) { return userID, nil } -func extractUserIDHex(ctx context.Context, _ *Services) (string, error) { - token, ok := ctx.Value(rpc.GWTokenKey{}).(string) - if !ok { - return "", fmt.Errorf("invalid userid: %s", ctx.Value(rpc.GWTokenKey{})) - } - return token, nil -} - // generateCacheKey generates a cache key for the given method, encryptionToken and parameters // encryptionToken is used to generate a unique cache key for each user and empty string should be used for public data func generateCacheKey(params []any) []byte {