Skip to content

Commit 0a90ae9

Browse files
committed
Ensure launchpad deposit data is always an array.
1 parent d10b7f2 commit 0a90ae9

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
1.6.1:
2+
- output array for launchpad deposit data JSON in all situations
13
1.6.0:
24
- update BLS HKDF function to match spec 04
35
- add --launchpad option to "validator depositdata" to output data in launchpad format

Diff for: cmd/validatordepositdata.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,12 @@ In quiet mode this will return 0 if the the data can be generated correctly, oth
203203
}
204204

205205
if len(outputs) == 1 {
206-
fmt.Printf("%s\n", outputs[0])
206+
if validatorDepositDataLaunchpad {
207+
// Launchpad requires an array even if there is only a single element.
208+
fmt.Printf("[%s]\n", outputs[0])
209+
} else {
210+
fmt.Printf("%s\n", outputs[0])
211+
}
207212
} else {
208213
fmt.Printf("[")
209214
fmt.Print(strings.Join(outputs, ","))

Diff for: cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/spf13/viper"
2323
)
2424

25-
var ReleaseVersion = "local build from v1.6.0"
25+
var ReleaseVersion = "local build from v1.6.1"
2626

2727
// versionCmd represents the version command
2828
var versionCmd = &cobra.Command{

0 commit comments

Comments
 (0)