diff --git a/lib/starknet_explorer/block/block_utils.ex b/lib/starknet_explorer/block/block_utils.ex index 1423fe3a..ada8ab0d 100644 --- a/lib/starknet_explorer/block/block_utils.ex +++ b/lib/starknet_explorer/block/block_utils.ex @@ -190,7 +190,6 @@ defmodule StarknetExplorer.BlockUtils do |> Enum.map(fn %{"execution_resources" => %{"steps" => steps}} -> steps - |> StarknetExplorerWeb.Utils.hex_to_integer() _ -> nil diff --git a/lib/starknet_explorer/transaction.ex b/lib/starknet_explorer/transaction.ex index 59ebd2f2..02e6ef2b 100644 --- a/lib/starknet_explorer/transaction.ex +++ b/lib/starknet_explorer/transaction.ex @@ -243,7 +243,8 @@ defmodule StarknetExplorer.Transaction do defp validate_according_to_tx_type(changeset, _tx = %{"type" => "INVOKE"}) do changeset - |> validate_required(@invoke_v0_tx_fields) + # Skip required fields check because of Juno0.9.2 breaking changes + # |> validate_required(@invoke_v0_tx_fields) end defp validate_according_to_tx_type(changeset, _tx = %{"type" => "DEPLOY", "max_fee" => _}) do diff --git a/lib/starknet_explorer/transaction_receipt.ex b/lib/starknet_explorer/transaction_receipt.ex index 9f1e6633..4d8501d1 100644 --- a/lib/starknet_explorer/transaction_receipt.ex +++ b/lib/starknet_explorer/transaction_receipt.ex @@ -93,7 +93,7 @@ defmodule StarknetExplorer.TransactionReceipt do schema "transaction_receipts" do belongs_to :transaction, Transaction, references: :hash field :type, :string - field :actual_fee, :string + field :actual_fee, :map field :finality_status, :string field :execution_status, :string field :block_hash, :string diff --git a/lib/starknet_explorer_web/live/transaction_live.ex b/lib/starknet_explorer_web/live/transaction_live.ex index 76ba1a08..eab1bca4 100644 --- a/lib/starknet_explorer_web/live/transaction_live.ex +++ b/lib/starknet_explorer_web/live/transaction_live.ex @@ -392,7 +392,7 @@ defmodule StarknetExplorerWeb.TransactionLive do
Actual Fee
- <%= Utils.hex_wei_to_eth(@transaction_receipt.actual_fee) %> ETH + <%= Utils.hex_wei_to_eth(@transaction_receipt.actual_fee["amount"]) %> ETH
@@ -539,10 +539,10 @@ defmodule StarknetExplorerWeb.TransactionLive do
- STEPS <%= "#{Utils.hex_to_integer(@transaction_receipt.execution_resources["steps"])}" %> + STEPS <%= "#{@transaction_receipt.execution_resources["steps"]}" %>
- MEMORY HOLES <%= "#{Utils.hex_to_integer(@transaction_receipt.execution_resources["memory_holes"])}" %> + MEMORY HOLES <%= "#{@transaction_receipt.execution_resources["memory_holes"]}" %>
<%= for {builtin_name, resources} <- @transaction_receipt.execution_resources do %> <%= if String.ends_with?(builtin_name, "_applications") and resources != "0x0" do %> @@ -551,7 +551,7 @@ defmodule StarknetExplorerWeb.TransactionLive do <%= Utils.builtin_name(temp_name) %> - <%= Utils.hex_to_integer(resources) %> + <%= resources %>
<% end %> <% end %> diff --git a/priv/repo/migrations/20230707152800_transaction_receipts.exs b/priv/repo/migrations/20230707152800_transaction_receipts.exs index 7cf3f4d9..56b35596 100644 --- a/priv/repo/migrations/20230707152800_transaction_receipts.exs +++ b/priv/repo/migrations/20230707152800_transaction_receipts.exs @@ -8,7 +8,7 @@ defmodule StarknetExplorer.Repo.Migrations.TransactionReceipts do add :transaction_hash, :string, primary_key: true add :type, :string - add :actual_fee, :string + add :actual_fee, :map add :finality_status, :string add :execution_status, :string add :block_hash, :string