aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/types.go b/rpc/types.go
index 53a2a0806..83542c83d 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -104,7 +104,7 @@ func (d *hexnum) String() string {
// Get hex string from bytes
out := common.Bytes2Hex(d.data)
// Trim leading 0s
- out = strings.Trim(out, "0")
+ out = strings.TrimLeft(out, "0")
// Output "0x0" when value is 0
if len(out) == 0 {
out = "0"