From cc45b4d8b536a53b59696389e3609c2f633d07a7 Mon Sep 17 00:00:00 2001
From: Taylor Gerring <taylor.gerring@gmail.com>
Date: Thu, 2 Apr 2015 12:30:42 +0200
Subject: [PATCH] Trim left only, not right

---
 rpc/types.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"
-- 
GitLab