diff --git a/lib/archethic_web/controllers/api/transaction_controller.ex b/lib/archethic_web/controllers/api/transaction_controller.ex index 9d6a1c41f4..ef1f1552c8 100644 --- a/lib/archethic_web/controllers/api/transaction_controller.ex +++ b/lib/archethic_web/controllers/api/transaction_controller.ex @@ -197,11 +197,6 @@ defmodule ArchethicWeb.API.TransactionController do defp fetch_recipient_tx_and_simulate(recipient, tx) do case Archethic.search_transaction(recipient) do {:ok, prev_tx} -> - prev_tx = - prev_tx - |> TransactionPayload.to_map() - |> Transaction.cast() - Archethic.simulate_contract_execution(prev_tx, tx) {:error, reason} -> diff --git a/test/archethic_web/controllers/api/transaction_controller_test.exs b/test/archethic_web/controllers/api/transaction_controller_test.exs index fb3fcaa38a..80aa46d461 100644 --- a/test/archethic_web/controllers/api/transaction_controller_test.exs +++ b/test/archethic_web/controllers/api/transaction_controller_test.exs @@ -265,7 +265,7 @@ defmodule ArchethicWeb.API.TransactionControllerTest do code = """ condition inherit: [ type: transfer, - content: \"hello\", + content: "hello", uco_transfers: true ] @@ -355,7 +355,7 @@ defmodule ArchethicWeb.API.TransactionControllerTest do "address" => "00009e059e8171643b959284fe542909f3b32198b8fc25b3e50447589b84341c1d67", "data" => %{ "code" => code, - "content" => "0000", + "content" => "hello", "recipients" => ["00009e059e8171643b959284fe542909f3b32198b8fc25b3e50447589b84341c1d67"] }, "originSignature" =>