From abc3977a4d92002c5faec3679d6fc196e5b015df Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Thu, 21 Sep 2023 14:56:50 +0100 Subject: [PATCH] fix logs --- go/enclave/storage/enclavedb/events.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/go/enclave/storage/enclavedb/events.go b/go/enclave/storage/enclavedb/events.go index d91a12281f..e1b2d5d1ee 100644 --- a/go/enclave/storage/enclavedb/events.go +++ b/go/enclave/storage/enclavedb/events.go @@ -170,7 +170,7 @@ func FilterLogs( column := fmt.Sprintf("topic%d", i) query += " AND " + column + " in (?" + strings.Repeat(",?", len(sub)-1) + ")" for _, topic := range sub { - queryParams = append(queryParams, truncTo16(topic)) + queryParams = append(queryParams, topic.Bytes()) } } } @@ -202,7 +202,6 @@ func DebugGetLogs(db *sql.DB, txHash common.TxHash) ([]*tracers.DebugLogs, error LifecycleEvent: false, } - // todo - read datablob var t0, t1, t2, t3, t4 sql.NullString var relAddress1, relAddress2, relAddress3, relAddress4 sql.NullByte err = rows.Scan(