Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Mar 25, 2024
1 parent d0bb594 commit 06aaa6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/erc20_payment_lib/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,12 @@ pub async fn find_receipt_extended(
chain_tx_dao.priority_fee = tx.max_priority_fee_per_gas.map(|x| x.to_string());
chain_tx_dao.fee_paid = (gas_used * effective_gas_price).to_string();

chain_tx_dao.method = "N/A".to_string();
if tx.input.0.len() >= 4 {
// extract method
chain_tx_dao.method = format!("0x{}", hex::encode(&tx.input.0[0..4]));
}

//todo: move to lazy static
let erc20_transfer_event_signature: H256 =
H256::from_str("0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef")
Expand Down

0 comments on commit 06aaa6b

Please sign in to comment.