From c1a2dc462c154a1ac7b3654845b602ced812a348 Mon Sep 17 00:00:00 2001 From: Ruan Pingcheng Date: Mon, 2 Sep 2024 13:59:05 +0800 Subject: [PATCH] default 0 equity for missing token --- crates/zk-por-core/src/parser.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/zk-por-core/src/parser.rs b/crates/zk-por-core/src/parser.rs index ffc89dc..786a1a4 100644 --- a/crates/zk-por-core/src/parser.rs +++ b/crates/zk-por-core/src/parser.rs @@ -273,13 +273,12 @@ pub fn parse_account_state(parsed_data: &Map, tokens: &Vec().unwrap()); - parsed_debts.push(parsed_debt); - } else { - panic!("fail to find debt for token: {:?} in accountID {:?}", token, account_id); } + parsed_debts.push(parsed_debt); } } else { // if there is no debt, we fill it with zero