Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix token create script, add vscode debug config, update gitignore #914

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading