From 545d775bd7d3c81ac170dae7e2da7e75a4323b63 Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Mon, 7 Aug 2023 11:49:50 +0300 Subject: [PATCH] Fix explorer tests --- .../chain/csv_export/address_log_csv_exporter_test.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/explorer/test/explorer/chain/csv_export/address_log_csv_exporter_test.exs b/apps/explorer/test/explorer/chain/csv_export/address_log_csv_exporter_test.exs index b863792f81..bff1ca818d 100644 --- a/apps/explorer/test/explorer/chain/csv_export/address_log_csv_exporter_test.exs +++ b/apps/explorer/test/explorer/chain/csv_export/address_log_csv_exporter_test.exs @@ -1,6 +1,7 @@ defmodule Explorer.Chain.AddressLogCsvExporterTest do use Explorer.DataCase + alias Explorer.Chain.Address alias Explorer.Chain.CSVExport.AddressLogCsvExporter describe "export/3" do @@ -74,7 +75,7 @@ defmodule Explorer.Chain.AddressLogCsvExporterTest do assert result.index == to_string(log.index) assert result.block_number == to_string(log.block_number) 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.first_topic == to_string(log.first_topic) assert result.second_topic == to_string(log.second_topic)