From de8ec1a93614396801e0a05e7358f2f9520d953e Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Sun, 15 Oct 2023 08:09:11 -0700 Subject: [PATCH] abi2: add dbtypes for bool and text --- abi2/abi2.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/abi2/abi2.go b/abi2/abi2.go index bd87e173..a453f666 100644 --- a/abi2/abi2.go +++ b/abi2/abi2.go @@ -832,6 +832,12 @@ func dbtype(t string, d []byte) any { return d[12:] } return d + case t == "bool": + var x uint256.Int + x.SetBytes32(d) + return x.Dec() == "1" + case t == "text": + return string(d) default: return d }