Skip to content

Commit 76cabe0

Browse files
authored
fix loading private key flag for signer and node commands (#574)
1 parent 9cd3015 commit 76cabe0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/nodekey/nodekey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var NodekeyCmd = &cobra.Command{
6767
Short: "Generate node keys for different blockchain clients and protocols.",
6868
Long: usage,
6969
PersistentPreRun: func(cmd *cobra.Command, args []string) {
70-
inputNodeKeyPrivateKey = flag_loader.GetRpcUrlFlagValue(cmd)
70+
inputNodeKeyPrivateKey = flag_loader.GetPrivateKeyFlagValue(cmd)
7171
},
7272
RunE: func(cmd *cobra.Command, args []string) error {
7373
var nko nodeKeyOut

cmd/signer/signer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var SignerCmd = &cobra.Command{
8080
Short: "Utilities for security signing transactions",
8181
Long: signerUsage,
8282
PersistentPreRun: func(cmd *cobra.Command, args []string) {
83-
inputSignerOpts.privateKey = flag_loader.GetRpcUrlFlagValue(cmd)
83+
inputSignerOpts.privateKey = flag_loader.GetPrivateKeyFlagValue(cmd)
8484
},
8585
Args: cobra.NoArgs,
8686
}

0 commit comments

Comments
 (0)