pull/2190/head
Ayrat Badykov 6 years ago
parent 20140b0fcb
commit 33eb120910
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 4
      apps/explorer/test/explorer/chain_test.exs

@ -3954,7 +3954,7 @@ defmodule Explorer.ChainTest do
insert(:token_transfer, from_address: from_address, to_address: to_address, transaction: transaction) insert(:token_transfer, from_address: from_address, to_address: to_address, transaction: transaction)
assert {:erc721, _found_token_transfer} = Chain.transaction_token_transfer_type(transaction) assert :erc721 = Chain.transaction_token_transfer_type(Repo.preload(transaction, :token_trasfers))
end end
test "detects erc20 token transfer" do test "detects erc20 token transfer" do
@ -3980,7 +3980,7 @@ defmodule Explorer.ChainTest do
amount: 8_025_000_000_000_000_000_000 amount: 8_025_000_000_000_000_000_000
) )
assert {:erc20, _found_token_transfer} = Chain.transaction_token_transfer_type(transaction) assert :erc20 = Chain.transaction_token_transfer_type(Repo.preload(transaction, :token_trasfers))
end end
end end

Loading…
Cancel
Save