From 65e9905a839ed1c9cf7ef50129056c0db75fba05 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 18 Jul 2017 12:31:57 +0200 Subject: [PATCH 1/2] Ensure valid address in basecoin init --- cmd/basecoin/commands/init.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/basecoin/commands/init.go b/cmd/basecoin/commands/init.go index b0b6a3fc28..26f4369662 100644 --- a/cmd/basecoin/commands/init.go +++ b/cmd/basecoin/commands/init.go @@ -1,11 +1,13 @@ package commands import ( + "encoding/hex" "fmt" "io/ioutil" "os" "path" + "github.com/pkg/errors" "github.com/spf13/cobra" tcmd "github.com/tendermint/tendermint/cmd/tendermint/commands" @@ -56,6 +58,14 @@ func initCmd(cmd *cobra.Command, args []string) error { return fmt.Errorf("`init` takes one argument, a basecoin account address. Generate one using `basecli keys new mykey`") } userAddr := args[0] + // verify this account is correct + data, err := hex.DecodeString(StripHex(userAddr)) + if err != nil { + return errors.Wrap(err, "Invalid address") + } + if len(data) != 20 { + return errors.New("Address must be 20-bytes in hex") + } // initalize basecoin genesisFile := cfg.GenesisFile() From 450823b5f3bc404e70f8865997e7be4aaaa5105f Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 27 Jul 2017 22:11:17 -0400 Subject: [PATCH 2/2] Bump to 0.6.2 --- CHANGELOG.md | 12 ++++++++++++ version/version.go | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16e4be1456..e61d8eb6a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 0.6.2 (July 27, 2017) + +IMPROVEMENTS: + +* auto-test all tutorials to detect breaking changes +* move deployment scripts from `/scripts` to `/publish` for clarity + +BUG FIXES: + +* `basecoin init` ensures the address in genesis.json is valid +* fix bug that certain addresses couldn't receive ibc packets + ## 0.6.1 (June 28, 2017) Make lots of small cli fixes that arose when people were using the tools for diff --git a/version/version.go b/version/version.go index 1e25edb4a6..1cd436e8c7 100644 --- a/version/version.go +++ b/version/version.go @@ -2,6 +2,6 @@ package version const Maj = "0" const Min = "6" -const Fix = "1" +const Fix = "2" -const Version = "0.6.1" +const Version = "0.6.2"