diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-18 03:29:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-18 03:29:54 +0800 |
commit | b7a636b8949a2270ae030f56791c88060fa5483a (patch) | |
tree | 24d06588c3d71c539f6cdbaab91b78c3796e6805 /ethutil | |
parent | e5b97fe03e8789bf4e113946a1935c0ba270ad2b (diff) | |
download | go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.tar go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.tar.gz go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.tar.bz2 go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.tar.lz go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.tar.xz go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.tar.zst go-tangerine-b7a636b8949a2270ae030f56791c88060fa5483a.zip |
Values should accept bytes as valid string output
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/value.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethutil/value.go b/ethutil/value.go index 701ece5bb..d3a38f87f 100644 --- a/ethutil/value.go +++ b/ethutil/value.go @@ -98,6 +98,8 @@ func (val *Value) Str() string { return string(a) } else if a, ok := val.Val.(string); ok { return a + } else if a, ok := val.Val.(byte); ok { + return string(a) } return "" |