From 6b4f5c56b261b50421222817bfc83cf2de3a3686 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Mon, 30 Sep 2024 20:14:56 +0100 Subject: [PATCH] fix_: uniswap url and output path --- services/wallet/token/downloader/main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/wallet/token/downloader/main.go b/services/wallet/token/downloader/main.go index be87c83ac05..d30fa92ea19 100644 --- a/services/wallet/token/downloader/main.go +++ b/services/wallet/token/downloader/main.go @@ -15,8 +15,11 @@ import ( "github.com/xeipuuv/gojsonschema" ) -const uniswapTokensURL = "https://gateway.ipfs.io/ipns/tokens.uniswap.org" // nolint:gosec -const tokenListSchemaURL = "https://uniswap.org/tokenlist.schema.json" // nolint:gosec +const ( + uniswapTokensURL = "https://ipfs.io/ipns/tokens.uniswap.org" + tokenListSchemaURL = "https://uniswap.org/tokenlist.schema.json" + outputFile = "services/wallet/token/uniswap.go" +) const templateText = ` package token @@ -100,7 +103,7 @@ func main() { tmpl := template.Must(template.New("tokens").Parse(templateText)) // Create the output Go file - file, err := os.Create("uniswap.go") + file, err := os.Create(outputFile) if err != nil { fmt.Printf("Failed to create go file: %v\n", err) return