Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
netboz committed Jan 26, 2023
1 parent 2ee2886 commit 299c122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lib/archethic_web/controllers/api/transaction_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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} ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ defmodule ArchethicWeb.API.TransactionControllerTest do
code = """
condition inherit: [
type: transfer,
content: \"hello\",
content: "hello",
uco_transfers: true
]
Expand Down Expand Up @@ -355,7 +355,7 @@ defmodule ArchethicWeb.API.TransactionControllerTest do
"address" => "00009e059e8171643b959284fe542909f3b32198b8fc25b3e50447589b84341c1d67",
"data" => %{
"code" => code,
"content" => "0000",
"content" => "hello",
"recipients" => ["00009e059e8171643b959284fe542909f3b32198b8fc25b3e50447589b84341c1d67"]
},
"originSignature" =>
Expand Down

0 comments on commit 299c122

Please sign in to comment.