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

Commit

Permalink
Remove TX constraints (#409)
Browse files Browse the repository at this point in the history
* Add sepolia network

* Update Github workflows

* Update README.md

* Update README.md

* remove tx constraints
  • Loading branch information
pefontana authored Jan 19, 2024
1 parent 42ccb7f commit 0177ea4
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 0177ea4

Please sign in to comment.