aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-18 03:29:54 +0800
committerobscuren <geffobscura@gmail.com>2014-02-18 03:29:54 +0800
commitb7a636b8949a2270ae030f56791c88060fa5483a (patch)
tree24d06588c3d71c539f6cdbaab91b78c3796e6805 /ethutil
parente5b97fe03e8789bf4e113946a1935c0ba270ad2b (diff)
downloadgo-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.go2
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 ""