Skip to content

Commit 8ce6d3a

Browse files
authored
chore: add boolean conversion to string in bindings (#62)
- Enhanced the `convertToString` function to handle boolean values by adding a case that converts `bool` to its string representation using `strconv.FormatBool`. --- - fix #60
1 parent 1cc83c6 commit 8ce6d3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/bindings.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ func convertToString(val any) string {
836836
return v.Address()
837837
case *util.EthereumAddress:
838838
return v.Address()
839+
case bool:
840+
return strconv.FormatBool(v)
839841
case fmt.Stringer:
840842
return v.String()
841843
default:

0 commit comments

Comments
 (0)