|
|
@ -98,20 +98,21 @@ defmodule Explorer.Token.MetadataRetrieverTest do |
|
|
|
end |
|
|
|
end |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
assert [ |
|
|
|
assert {:ok, |
|
|
|
%{ |
|
|
|
[ |
|
|
|
name: "Bancor", |
|
|
|
%{ |
|
|
|
symbol: "BNT", |
|
|
|
name: "Bancor", |
|
|
|
total_supply: 1_000_000_000_000_000_000, |
|
|
|
symbol: "BNT", |
|
|
|
decimals: 18 |
|
|
|
total_supply: 1_000_000_000_000_000_000, |
|
|
|
}, |
|
|
|
decimals: 18 |
|
|
|
%{ |
|
|
|
}, |
|
|
|
name: "Bancor", |
|
|
|
%{ |
|
|
|
symbol: "BNT", |
|
|
|
name: "Bancor", |
|
|
|
total_supply: 1_000_000_000_000_000_000, |
|
|
|
symbol: "BNT", |
|
|
|
decimals: 18 |
|
|
|
total_supply: 1_000_000_000_000_000_000, |
|
|
|
} |
|
|
|
decimals: 18 |
|
|
|
] = MetadataRetriever.get_functions_of([token.contract_address_hash, token.contract_address_hash]) |
|
|
|
} |
|
|
|
|
|
|
|
]} = MetadataRetriever.get_functions_of([token.contract_address_hash, token.contract_address_hash]) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
test "returns only the functions that were read without error" do |
|
|
|
test "returns only the functions that were read without error" do |
|
|
|