mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-03 10:03:47 +00:00
Values should accept bytes as valid string output
This commit is contained in:
parent
e5b97fe03e
commit
b7a636b894
1 changed files with 2 additions and 0 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue