Skip to content

Commit

Permalink
fix invalid return value
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne committed Dec 21, 2023
1 parent 289e8c4 commit 79333d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/archethic_playground.ex
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ defmodule ArchethicPlayground do
Contracts.valid_condition?(condition_type, contract, tx, recipient, datetime)
end

defp check_valid_precondition(_, _, _, _, _), do: :ok
defp check_valid_precondition(_, _, _, _, _), do: true

defp check_valid_postcondition(
contract = %Contract{},
Expand All @@ -181,5 +181,5 @@ defmodule ArchethicPlayground do
Contracts.valid_condition?(:inherit, contract, next_tx, nil, datetime)
end

defp check_valid_postcondition(_, _, _), do: :ok
defp check_valid_postcondition(_, _, _), do: true
end

0 comments on commit 79333d1

Please sign in to comment.