We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06aaa6b commit 0c70e24Copy full SHA for 0c70e24
crates/erc20_payment_lib/src/transaction.rs
@@ -940,11 +940,12 @@ pub async fn find_receipt_extended(
940
chain_tx_dao.priority_fee = tx.max_priority_fee_per_gas.map(|x| x.to_string());
941
chain_tx_dao.fee_paid = (gas_used * effective_gas_price).to_string();
942
943
- chain_tx_dao.method = "N/A".to_string();
944
- if tx.input.0.len() >= 4 {
+ chain_tx_dao.method = if tx.input.0.len() >= 4 {
945
// extract method
946
- chain_tx_dao.method = format!("0x{}", hex::encode(&tx.input.0[0..4]));
947
- }
+ format!("0x{}", hex::encode(&tx.input.0[0..4]))
+ } else {
+ "N/A".to_string()
948
+ };
949
950
//todo: move to lazy static
951
let erc20_transfer_event_signature: H256 =
0 commit comments