Skip to content

Commit

Permalink
Populate gasPrice when constructing EthTransactionInfo from block
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamc1 committed Sep 26, 2023
1 parent ba17cf1 commit 97f298f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ain-grpc/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl EthTransactionInfo {
block_hash: Some(format_h256(block.header.hash())),
block_number: Some(format_u256(block.header.number)),
transaction_index: Some(format_u256(U256::from(index))),
gas_price: format_u256(signed_tx.effective_gas_price(block.header.base_fee)),
..EthTransactionInfo::from(signed_tx)
})
}
Expand Down

0 comments on commit 97f298f

Please sign in to comment.