We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1d1058 commit 519816aCopy full SHA for 519816a
1 file changed
packages/extension/src/providers/ethereum/libs/assets-handlers/blockscout.ts
@@ -11,7 +11,7 @@ interface TokenBalanceType {
11
12
interface TokenResponseItem {
13
token: {
14
- address: string;
+ address_hash: string;
15
decimals: string;
16
name: string;
17
symbol: string;
@@ -57,12 +57,12 @@ const getBlockscoutBalances = (
57
? tokenResponse.items
58
.filter(
59
item =>
60
- item?.token?.address &&
61
- typeof item.token.address === 'string' &&
+ item?.token?.address_hash &&
+ typeof item.token.address_hash === 'string' &&
62
item.value !== undefined,
63
)
64
.map(item => ({
65
- token: item.token.address.toLowerCase(),
+ token: item.token.address_hash.toLowerCase(),
66
quantity: item.value,
67
}))
68
: [];
0 commit comments