Skip to content

Commit

Permalink
SC: action: remove obsolete clause
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne authored and Neylix committed Jan 28, 2023
1 parent dc716e7 commit 3b8b8b1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/archethic/contracts/interpreter/action.ex
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,6 @@ defmodule Archethic.Contracts.ActionInterpreter do
end

# Whitelist the add_uco_transfer function parameters
defp prewalk(
node = {{:atom, "to"}, address},
acc = {:ok, %{scope: {"add_uco_transfer", {:actions, _}}}}
)
when is_binary(address) do
{node, acc}
end

defp prewalk(
node = {{:atom, "to"}, address},
acc = {:ok, %{scope: {:function, "add_uco_transfer", {:actions, _}}}}
Expand Down

0 comments on commit 3b8b8b1

Please sign in to comment.