good morning!!!!

Skip to content
Snippets Groups Projects
Commit cc45b4d8 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Trim left only, not right

parent f89baa73
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ func (d *hexnum) String() string { ...@@ -104,7 +104,7 @@ func (d *hexnum) String() string {
// Get hex string from bytes // Get hex string from bytes
out := common.Bytes2Hex(d.data) out := common.Bytes2Hex(d.data)
// Trim leading 0s // Trim leading 0s
out = strings.Trim(out, "0") out = strings.TrimLeft(out, "0")
// Output "0x0" when value is 0 // Output "0x0" when value is 0
if len(out) == 0 { if len(out) == 0 {
out = "0" out = "0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment