From 44581f77e7f7c72c000bce65872ba61b3e31d3e5 Mon Sep 17 00:00:00 2001 From: Tobeyw Date: Mon, 24 Jun 2024 11:17:57 +0800 Subject: [PATCH] update bridgeTx --- neo3fura_http/biz/api/bridge.GetBridgeTxByNonce.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neo3fura_http/biz/api/bridge.GetBridgeTxByNonce.go b/neo3fura_http/biz/api/bridge.GetBridgeTxByNonce.go index 715d13d..629b5f7 100644 --- a/neo3fura_http/biz/api/bridge.GetBridgeTxByNonce.go +++ b/neo3fura_http/biz/api/bridge.GetBridgeTxByNonce.go @@ -2,10 +2,12 @@ package api import ( "encoding/json" + "strconv" + "go.mongodb.org/mongo-driver/bson" + "neo3fura_http/lib/type/h160" "neo3fura_http/var/stderr" - "strconv" ) func (me *T) GetBridgeTxByNonce(args struct { @@ -32,7 +34,7 @@ func (me *T) GetBridgeTxByNonce(args struct { Index: "GetBridgeTxByNonce", Sort: bson.M{"_id": -1}, Filter: bson.M{"contract": args.ContractHash.Val(), - "$or": []interface{}{bson.M{"eventname": "Withdrawal"}, bson.M{"eventname": "Claimable"}}, + "$or": []interface{}{bson.M{"eventname": "GasWithdrawal"}, bson.M{"eventname": "Claimable"}}, "state.value.0.value": nonceStr, }, Query: []string{},