Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Jun 3, 2024
1 parent a9e1af2 commit deb6b62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions tools/walletextension/rpcapi/blockchain_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package rpcapi
import (
"context"
"encoding/json"

"github.com/ethereum/go-ethereum/core/types"

"github.com/ethereum/go-ethereum/common"
Expand Down
8 changes: 0 additions & 8 deletions tools/walletextension/rpcapi/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit deb6b62

Please sign in to comment.