Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmoves authored and Neylix committed Jan 10, 2023
1 parent 2e2bace commit b148059
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 b148059

Please sign in to comment.