|
|
@ -1,6 +1,7 @@ |
|
|
|
defmodule Explorer.Chain.AddressLogCsvExporterTest do |
|
|
|
defmodule Explorer.Chain.AddressLogCsvExporterTest do |
|
|
|
use Explorer.DataCase |
|
|
|
use Explorer.DataCase |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alias Explorer.Chain.Address |
|
|
|
alias Explorer.Chain.CSVExport.AddressLogCsvExporter |
|
|
|
alias Explorer.Chain.CSVExport.AddressLogCsvExporter |
|
|
|
|
|
|
|
|
|
|
|
describe "export/3" do |
|
|
|
describe "export/3" do |
|
|
@ -74,7 +75,7 @@ defmodule Explorer.Chain.AddressLogCsvExporterTest do |
|
|
|
assert result.index == to_string(log.index) |
|
|
|
assert result.index == to_string(log.index) |
|
|
|
assert result.block_number == to_string(log.block_number) |
|
|
|
assert result.block_number == to_string(log.block_number) |
|
|
|
assert result.block_hash == to_string(log.block_hash) |
|
|
|
assert result.block_hash == to_string(log.block_hash) |
|
|
|
assert result.address == String.downcase(to_string(log.address)) |
|
|
|
assert result.address == Address.checksum(log.address.hash) |
|
|
|
assert result.data == to_string(log.data) |
|
|
|
assert result.data == to_string(log.data) |
|
|
|
assert result.first_topic == to_string(log.first_topic) |
|
|
|
assert result.first_topic == to_string(log.first_topic) |
|
|
|
assert result.second_topic == to_string(log.second_topic) |
|
|
|
assert result.second_topic == to_string(log.second_topic) |
|
|
|