fix: proper default value of gas used for dropped Arbitrum transactions (#10619)

pull/10631/head
Alexander Kolotov 2 months ago committed by GitHub
parent 11644455ba
commit da88e66dfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      apps/block_scout_web/lib/block_scout_web/views/api/v2/arbitrum_view.ex

@ -617,8 +617,8 @@ defmodule BlockScoutWeb.API.V2.ArbitrumView do
# for the transaction prior to the migration to Arbitrum specific BS build.
gas_used_for_l1 = Map.get(arbitrum_tx, :gas_used_for_l1, 0) || 0
gas_used = Map.get(arbitrum_tx, :gas_used, 0)
gas_price = Map.get(arbitrum_tx, :gas_price, 0)
gas_used = Map.get(arbitrum_tx, :gas_used, 0) || 0
gas_price = Map.get(arbitrum_tx, :gas_price, 0) || 0
gas_used_for_l2 =
gas_used

Loading…
Cancel
Save