From 40ec1f974a2c08ac66f7ceb77329f34ba8f5b381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Uster?= Date: Tue, 20 Jun 2023 11:30:52 +0000 Subject: [PATCH] properly return the error --- lib/archethic/utils/regression/playbook.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/archethic/utils/regression/playbook.ex b/lib/archethic/utils/regression/playbook.ex index ce414fd02..4bc328895 100644 --- a/lib/archethic/utils/regression/playbook.ex +++ b/lib/archethic/utils/regression/playbook.ex @@ -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) @@ -179,8 +179,8 @@ defmodule Archethic.Utils.Regression.Playbook do {:ok, _transaction_fee} = transaction_fee -> transaction_fee - _ -> - :error + error -> + error end end