Skip to content

Commit 2b66f9c

Browse files
committed
add a warning to not convert address between chains with different HD-Path
1 parent 6e488a2 commit 2b66f9c

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ devd convert address [address] [optional_bech32]
2525
# devd c a ethm1...zz
2626
# devd c a ethm1...zz xyz
2727
```
28+
***WARN: DO NOT use this command to convert address across chains with different HD-Path! (eg: Ethermint 60 and Cosmos 118)***
2829

2930
#### Encode string into ABI or decode ABI into string
3031

cmd/convert/address.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ func GetConvertAddressCmd() *cobra.Command {
2525
`),
2626
Args: cobra.RangeArgs(1, 2),
2727
Run: func(cmd *cobra.Command, args []string) {
28+
defer func() {
29+
fmt.Println("WARN: DO NOT use this command to convert address across chains with different HD-Path! (eg: Ethermint 60 and Cosmos 118)")
30+
}()
31+
2832
if len(args) < 1 {
2933
fmt.Println("not enough arguments")
3034
os.Exit(1)

constants/varcons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package constants
44

55
//goland:noinspection GoSnakeCaseUsage
66
var (
7-
VERSION = "1.1.0"
7+
VERSION = "1.1.1"
88
)

0 commit comments

Comments
 (0)