From b14805969f868fc4096f769e5cbc76d2b0554f1c Mon Sep 17 00:00:00 2001 From: tenmoves Date: Thu, 5 Jan 2023 07:36:55 +0100 Subject: [PATCH] refactor test --- test/archethic_web/graphql_schema_test.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/archethic_web/graphql_schema_test.exs b/test/archethic_web/graphql_schema_test.exs index 763bcd357..8bef47438 100644 --- a/test/archethic_web/graphql_schema_test.exs +++ b/test/archethic_web/graphql_schema_test.exs @@ -116,7 +116,7 @@ defmodule ArchethicWeb.GraphQLSchemaTest do assert addr == Base.decode16!(address, case: :mixed) - refute is_nil(previous_address) + assert Base.decode16!(previous_address) == Crypto.derive_address(prev_public_key) end end @@ -309,11 +309,13 @@ defmodule ArchethicWeb.GraphQLSchemaTest do transactions = [ %Transaction{ address: first, + previous_public_key: last, type: :transfer, data: %TransactionData{} }, %Transaction{ address: last, + previous_public_key: last, type: :hosting, data: %TransactionData{} }