Fix explorer tests

np-sourcify-constructor-args
Nikita Pozdniakov 1 year ago
parent 1135e7b66b
commit 545d775bd7
No known key found for this signature in database
GPG Key ID: F344106F9804FE5F
  1. 3
      apps/explorer/test/explorer/chain/csv_export/address_log_csv_exporter_test.exs

@ -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)

Loading…
Cancel
Save