Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmoves committed Jan 5, 2023
1 parent 53e50b2 commit 910ea47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/archethic_web/graphql_schema_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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{}
}
Expand Down

0 comments on commit 910ea47

Please sign in to comment.