mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
Values should accept bytes as valid string output
This commit is contained in:
parent
e5b97fe03e
commit
b7a636b894
@ -98,6 +98,8 @@ func (val *Value) Str() string {
|
|||||||
return string(a)
|
return string(a)
|
||||||
} else if a, ok := val.Val.(string); ok {
|
} else if a, ok := val.Val.(string); ok {
|
||||||
return a
|
return a
|
||||||
|
} else if a, ok := val.Val.(byte); ok {
|
||||||
|
return string(a)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user