Skip to content

Commit

Permalink
refactor: replace panic with warn when encountering unknown contract …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
c0mm4nd committed Sep 10, 2024
1 parent 7ebd923 commit a73026d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch_tron/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a73026d

Please sign in to comment.