Skip to content

Commit

Permalink
Fix trigger validation in SC tx acceptance (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmanzanera committed Oct 12, 2022
1 parent 8b92a8a commit 451442c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/archethic/contracts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ defmodule Archethic.Contracts do
end

defp validate_triggers(triggers, next_tx, date) do
if Enum.all?(triggers, &valid_from_trigger?(&1, next_tx, date)) do
if Enum.any?(triggers, &valid_from_trigger?(&1, next_tx, date)) do
:ok
else
Logger.error("Transaction not processed by a valid smart contract trigger")
Expand Down

0 comments on commit 451442c

Please sign in to comment.