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 | |
parent | e5b97fe03e8789bf4e113946a1935c0ba270ad2b (diff) | |
download | dexon-b7a636b8949a2270ae030f56791c88060fa5483a.tar dexon-b7a636b8949a2270ae030f56791c88060fa5483a.tar.gz dexon-b7a636b8949a2270ae030f56791c88060fa5483a.tar.bz2 dexon-b7a636b8949a2270ae030f56791c88060fa5483a.tar.lz dexon-b7a636b8949a2270ae030f56791c88060fa5483a.tar.xz dexon-b7a636b8949a2270ae030f56791c88060fa5483a.tar.zst dexon-b7a636b8949a2270ae030f56791c88060fa5483a.zip |
Values should accept bytes as valid string output
-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 "" |