Skip to content

Commit e4685e6

Browse files
committed
fix convert address that does not print 32 bytes address correctly
1 parent fe7679e commit e4685e6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/convert/address.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ func GetConvertAddressCmd() *cobra.Command {
9999
}
100100

101101
// case 3
102-
evmAddress := common.BytesToAddress(bz)
103-
fmt.Println(evmAddress.Hex())
102+
fmt.Printf("0x%x\n", bz)
104103
},
105104
}
106105

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 = "2.0.3"
7+
VERSION = "2.0.4"
88
)

0 commit comments

Comments
 (0)