aboutsummaryrefslogtreecommitdiffstats
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
parente5b97fe03e8789bf4e113946a1935c0ba270ad2b (diff)
downloaddexon-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.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 ""