From a73026deef5e4751e65fcb79cc439184bee23906 Mon Sep 17 00:00:00 2001 From: Command Date: Tue, 10 Sep 2024 22:56:39 +0800 Subject: [PATCH] refactor: replace panic with warn when encountering unknown contract type --- src/ch_tron/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch_tron/init.rs b/src/ch_tron/init.rs index 75f02dc..3083f33 100644 --- a/src/ch_tron/init.rs +++ b/src/ch_tron/init.rs @@ -816,7 +816,7 @@ pub(crate) async fn init( //TODO: add CustomContract and GetContract (useless) if !parameter_parsed { - panic!("unknown contract type: {:?}", parameter.type_url); + warn!("unknown contract type: {:?} {:X?}", parameter.type_url, transaction.txid); } transaction_row_list.push(transaction_row);