Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Remove TX constraints #409

Merged
merged 7 commits into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/starknet_explorer/transaction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ defmodule StarknetExplorer.Transaction do

defp validate_according_to_tx_type(changeset, _tx = %{"type" => "DEPLOY", "max_fee" => _}) do
changeset
|> validate_required(@deploy_account_tx_fields)
# |> validate_required(@deploy_account_tx_fields)
end

defp validate_according_to_tx_type(changeset, _tx = %{"type" => "DEPLOY_ACCOUNT"}) do
Expand All @@ -259,17 +259,17 @@ defmodule StarknetExplorer.Transaction do

defp validate_according_to_tx_type(changeset, _tx = %{"type" => "DEPLOY"}) do
changeset
|> validate_required(@deploy_contract_tx_fields)
# |> validate_required(@deploy_contract_tx_fields)
end

defp validate_according_to_tx_type(changeset, _tx = %{"type" => "DECLARE"}) do
changeset
|> validate_required(@declare_tx_fields)
# |> validate_required(@declare_tx_fields)
end

defp validate_according_to_tx_type(changeset, _tx = %{"type" => "L1_HANDLER"}) do
changeset
|> validate_required(@l1_handler_tx_fields)
# |> validate_required(@l1_handler_tx_fields)
end

def get_total_count(network) do
Expand Down
Loading