1

试图对合同事件应用过滤器但它总是返回所有记录似乎过滤器不起作用。

        this.CONTRACT_ADDRESS,
        {
          eventName: "InvoiceLog",
          filters: { '_invoiceId': id.toString()},
        }
      ).then((result: any) => {
        console.log("result of testing",result);
        // CommonModel.updateInvoicebal(result._invoiceId,result.currentBalance,result._toCurrentBalance);
        return result;
      });

也尝试使用 TronGrid 但得到相同的结果。

案例:有多个事件日志,我想通过应用过滤器来获取单个记录。在此,我们在“_invoiceId”上应用了索引。现在我试图从 1000 条记录中得到 1 个结果。但它总是向我发送多条记录。

它应该根据应用的过滤器提供 1 条记录。

4

0 回答 0