Skip to content

Commit

Permalink
fix convert address that does not print 32 bytes address correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbcdev committed Apr 11, 2024
1 parent fe7679e commit e4685e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/convert/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ func GetConvertAddressCmd() *cobra.Command {
}

// case 3
evmAddress := common.BytesToAddress(bz)
fmt.Println(evmAddress.Hex())
fmt.Printf("0x%x\n", bz)
},
}

Expand Down
2 changes: 1 addition & 1 deletion constants/varcons.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ package constants

//goland:noinspection GoSnakeCaseUsage
var (
VERSION = "2.0.3"
VERSION = "2.0.4"
)

0 comments on commit e4685e6

Please sign in to comment.