Skip to content

Commit 6e7883d

Browse files
authored
fix typo in command, allow gosdk to be specified (#171)
1 parent f3dfe25 commit 6e7883d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/system_tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ on:
3131
description: '0box branch to deploy'
3232
default: 'staging'
3333
required: true
34-
zblock_branch:
35-
description: '0block branch to deploy'
34+
gosdk_branch:
35+
description: 'gosdk branch to deploy'
3636
default: 'staging'
3737
required: true
3838
zdns_branch:
@@ -55,8 +55,9 @@ jobs:
5555
blobber_branch: ${{ github.event.inputs.blobber_branch }}
5656
validator_branch: ${{ github.event.inputs.validator_branch }}
5757
zbox_branch: ${{ github.event.inputs.zbox_branch }}
58-
zblock_branch: ${{ github.event.inputs.zblock_branch }}
5958
zdns_branch: ${{ github.event.inputs.zdns_branch }}
59+
gosdk_branch: ${{ github.event.inputs.gosdk_branch }}
60+
zblock_branch: staging
6061
explorer_branch: staging
6162
zproxy_branch: staging
6263
zsearch_branch: staging

cmd/walletinfo.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import (
1515

1616
var walletDecryptCmd = &cobra.Command{
1717
Use: "decrypt",
18-
Short: "Decrypt text with passphase",
19-
Long: `Decrypt text with passphase`,
18+
Short: "Decrypt text with passphrase",
19+
Long: `Decrypt text with passphrase`,
2020
Args: cobra.MinimumNArgs(0),
2121
Run: func(cmd *cobra.Command, args []string) {
22-
passphase, _ := cmd.Flags().GetString("passphase")
22+
passphrase, _ := cmd.Flags().GetString("passphrase")
2323
text, _ := cmd.Flags().GetString("text")
2424

25-
decrypted, err := zcncore.Decrypt(passphase, text)
25+
decrypted, err := zcncore.Decrypt(passphrase, text)
2626
if err != nil {
2727
fmt.Println(err)
2828
}
@@ -92,6 +92,6 @@ func init() {
9292
signCmd.Flags().String("data", "", "give data for signing, Default will be clientID")
9393

9494
rootCmd.AddCommand(walletDecryptCmd)
95-
walletDecryptCmd.Flags().String("passphase", "", "Passphase to decrypt text")
95+
walletDecryptCmd.Flags().String("passphrase", "", "Passphrase to decrypt text")
9696
walletDecryptCmd.Flags().String("text", "", "Encrypted text")
9797
}

0 commit comments

Comments
 (0)