Skip to content

Commit

Permalink
properly return the error
Browse files Browse the repository at this point in the history
  • Loading branch information
cluster authored and bchamagne committed Jul 6, 2023
1 parent 5e9e690 commit 40ec1f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/archethic/utils/regression/playbook.ex
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ defmodule Archethic.Utils.Regression.Playbook do
curve \\ Crypto.default_curve(),
proto \\ :http
) do
chain_length = get_chain_size(transaction_seed, curve, host, port)
chain_length = get_chain_size(transaction_seed, curve, host, port, proto)

{previous_public_key, previous_private_key} =
Crypto.derive_keypair(transaction_seed, chain_length, curve)
Expand Down Expand Up @@ -179,8 +179,8 @@ defmodule Archethic.Utils.Regression.Playbook do
{:ok, _transaction_fee} = transaction_fee ->
transaction_fee

_ ->
:error
error ->
error
end
end

Expand Down

0 comments on commit 40ec1f9

Please sign in to comment.