Skip to content

Commit

Permalink
feat: Add icon property to TokenItemType and update TokenItemsImpl to…
Browse files Browse the repository at this point in the history
… include coin image URL
  • Loading branch information
trungbach committed Nov 8, 2024
1 parent a254e5c commit 10c88c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/token-items/token-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export class TokenItemsImpl implements TokenItems {
maxGas: (network.feeCurrencies?.[0].gasPriceStep?.high ?? 0) * 20000,
gasPriceStep: currency.gasPriceStep,
feeCurrencies: network.feeCurrencies,
evmDenoms
evmDenoms,
icon: currency.coinImageUrl
};
});
};
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/token-items/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ export type TokenItemType = {
readonly high: number;
};
feeCurrencies?: FeeCurrency[];
icon: string;
};

0 comments on commit 10c88c5

Please sign in to comment.