From 8a7338251d2d57457f8815b727771d74518d69c3 Mon Sep 17 00:00:00 2001 From: Tobeyw Date: Fri, 10 May 2024 17:30:56 +0800 Subject: [PATCH] fix GetFirstEventByTransactionHash --- .../biz/watch/watch.GetFirstEventByTransactionHash.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neo3fura_http/biz/watch/watch.GetFirstEventByTransactionHash.go b/neo3fura_http/biz/watch/watch.GetFirstEventByTransactionHash.go index 4e1cd33..a96590a 100644 --- a/neo3fura_http/biz/watch/watch.GetFirstEventByTransactionHash.go +++ b/neo3fura_http/biz/watch/watch.GetFirstEventByTransactionHash.go @@ -58,8 +58,7 @@ func (me *T) GetFirstEventByTransactionHash() error { if err != nil { log2.Fatalf("Query Execution error:%v", err) } - - if r1["vmstate"] != nil && r1["vmstate"] != "" { + if len(r1) > 0 && r1["vmstate"] != nil && r1["vmstate"] != "" { r2["vmstate"] = r1["vmstate"].(string) _, err = me.Client.SaveJob(struct { Collection string