Skip to content

Commit

Permalink
Handle no signature for fungible processor
Browse files Browse the repository at this point in the history
  • Loading branch information
rtso committed Jun 24, 2024
1 parent 2158e17 commit 2f7b884
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions rust/processor/src/db/common/models/coin_models/coin_activities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2f7b884

Please sign in to comment.