From 678b80956400dc93e9f9a16b2c2cfc17d42e0efc Mon Sep 17 00:00:00 2001 From: Daniil Date: Fri, 19 May 2023 14:51:27 +0200 Subject: [PATCH] add comment parser --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 6b66888..964283c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -356,6 +356,13 @@ pub fn extract_events( data: &Transaction, parser: &TransactionParser, ) -> Option> { + // let parser = TransactionParser::builder() + // .function_in_list(functions.clone(), false) + // .functions_out_list(functions, false) + // .events_list(events) + // .build() + // .unwrap(); + if let Ok(extracted) = parser.parse(data) { if !extracted.is_empty() { return filter_extracted(extracted, data.clone());