fix: one more test

pull/9168/head
Kirill Fedoseev 10 months ago
parent 41008abb69
commit e4ccb3642e
  1. 2
      apps/block_scout_web/lib/block_scout_web/views/api/v2/block_view.ex

@ -134,7 +134,7 @@ defmodule BlockScoutWeb.API.V2.BlockView do
"ethereum" ->
if single_block? do
blob_gas_price = Block.transaction_blob_gas_price(block.transactions)
burnt_blob_transaction_fees = block |> Map.get(:blob_gas_used, 0) |> Decimal.mult(blob_gas_price || 0)
burnt_blob_transaction_fees = Decimal.mult(block.blob_gas_used || 0, blob_gas_price || 0)
result
|> Map.put("blob_gas_used", block.blob_gas_used)

Loading…
Cancel
Save