Skip to content

Commit

Permalink
Fix token create script, add vscode debug config, update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Kotsev authored and Vladislav Kotsev committed Jun 18, 2024
1 parent 1307e34 commit 5884f6b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ coverage.txt

scripts/**/*.yml

.vscode
#.vscode

# Ignore data persistence
prometheus_data
Expand Down
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/main.go",
"args": [],
"env": {},
"buildFlags": "",
"init": "",
"cwd": "${workspaceFolder}",
"output": "",
"showLog": true,
"dlvToolPath": "${env:GOPATH}/bin/dlv"
}
]
}
12 changes: 6 additions & 6 deletions scripts/token/native/create/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ package main
import (
"flag"
"fmt"
"strings"

"github.com/hashgraph/hedera-sdk-go/v2"
mirrorNode "github.com/limechain/hedera-eth-bridge-validator/app/clients/hedera/mirror-node"
"github.com/limechain/hedera-eth-bridge-validator/config"
"github.com/limechain/hedera-eth-bridge-validator/scripts/client"
"github.com/limechain/hedera-eth-bridge-validator/scripts/token/associate"
"github.com/limechain/hedera-eth-bridge-validator/scripts/token/native/create"
"strings"
)

const (
Expand All @@ -39,6 +40,10 @@ func main() {
network := flag.String("network", "", "Hedera Network Type")
bridgeID := flag.String("bridgeID", "0.0", "Bridge account ID")
memberPrKeys := flag.String("memberPrKeys", "", "The count of the members")
tokenName := flag.String("name", "Hedera Native Generic Token", "token name")
tokenSymbol := flag.String("symbol", "HNT", "token symbol")
decimals := flag.Uint("decimals", 8, "decimals")
setSupplyKey := flag.Bool("setSupplyKey", true, "Sets supply key to be the deployer")
flag.Parse()
if *privateKey == "0x0" {
panic("Private key was not provided")
Expand All @@ -50,11 +55,6 @@ func main() {
panic("Bridge id was not provided")
}

tokenName := flag.String("name", "Hedera Native Generic Token", "token name")
tokenSymbol := flag.String("symbol", "HNT", "token symbol")
decimals := flag.Uint("decimals", 8, "decimals")
setSupplyKey := flag.Bool("setSupplyKey", true, "Sets supply key to be the deployer")

fmt.Println("-----------Start-----------")
cl := client.Init(*privateKey, *accountID, *network)

Expand Down

0 comments on commit 5884f6b

Please sign in to comment.