From 2f7b8849b8ccefa1d337ff6a19306c2a0f12c36c Mon Sep 17 00:00:00 2001 From: rtso <8248583+rtso@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:36:59 -0400 Subject: [PATCH] Handle no signature for fungible processor --- .../common/models/coin_models/coin_activities.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/rust/processor/src/db/common/models/coin_models/coin_activities.rs b/rust/processor/src/db/common/models/coin_models/coin_activities.rs index e1f1cdf1d..e7467761f 100644 --- a/rust/processor/src/db/common/models/coin_models/coin_activities.rs +++ b/rust/processor/src/db/common/models/coin_models/coin_activities.rs @@ -273,18 +273,10 @@ impl CoinActivity { ) -> Self { let aptos_coin_burned = BigDecimal::from(txn_info.gas_used * user_transaction_request.gas_unit_price); - let signature = user_transaction_request - .signature - .as_ref() - .unwrap_or_else(|| { - tracing::error!( - transaction_version = transaction_version, - "User transaction must have signature" - ); - panic!("User transaction must have signature") - }); - let gas_fee_payer_address = - Signature::get_fee_payer_address(signature, transaction_version); + let gas_fee_payer_address = match user_transaction_request.signature.as_ref() { + Some(signature) => Signature::get_fee_payer_address(signature, transaction_version), + None => None, + }; Self { transaction_version,