Skip to content

Commit

Permalink
fix_: uniswap url and output path
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Sep 30, 2024
1 parent 32ed6cf commit 6b4f5c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions services/wallet/token/downloader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b4f5c5

Please sign in to comment.