Skip to content

Commit

Permalink
Fix txref CLI to switch between standard and non standard HRP
Browse files Browse the repository at this point in the history
  • Loading branch information
kulpreet committed Jul 2, 2018
1 parent 5b92174 commit 1cd8e35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion txref.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ func init() {

func main() {

const hrp = "tx"
var hrp string

if opts.NonStandard {
hrp = "txtest"
} else {
hrp = "tx"
}

if !opts.Encode && !opts.Decode {
fmt.Printf("Please choose either encode or decode\n")
os.Exit(1)
Expand Down

0 comments on commit 1cd8e35

Please sign in to comment.