From c486837ba8d756c64cdffe9830a56ac617c683dc Mon Sep 17 00:00:00 2001 From: Felipe Renan Date: Wed, 21 Nov 2018 17:46:24 -0200 Subject: [PATCH] Fix token transfers' tests --- apps/explorer/test/explorer/chain/import_test.exs | 4 +++- apps/explorer/test/support/factory.ex | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/explorer/test/explorer/chain/import_test.exs b/apps/explorer/test/explorer/chain/import_test.exs index d006893cb7..9b79362721 100644 --- a/apps/explorer/test/explorer/chain/import_test.exs +++ b/apps/explorer/test/explorer/chain/import_test.exs @@ -1517,7 +1517,9 @@ defmodule Explorer.Chain.ImportTest do }, token_transfers: %{ params: [ - params_for(:token_transfer, + params_for( + :token_transfer, + block_number: 35, from_address_hash: from_address_hash, to_address_hash: to_address_hash, token_contract_address_hash: token_contract_address_hash, diff --git a/apps/explorer/test/support/factory.ex b/apps/explorer/test/support/factory.ex index edcf896cea..e1aac30fd8 100644 --- a/apps/explorer/test/support/factory.ex +++ b/apps/explorer/test/support/factory.ex @@ -387,6 +387,7 @@ defmodule Explorer.Factory do %TokenTransfer{ amount: Decimal.new(1), + block_number: block_number(), from_address: from_address, to_address: to_address, token_contract_address: token_address,