-
-
Notifications
You must be signed in to change notification settings - Fork 274
balance fetcher to fix non-eth assetIds #8284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
32f86e3
1c7ff77
9ba1254
e85496f
c71d3e2
3a4da24
071f5f1
eac5e7f
1f79c0b
8046bbe
ae1ede2
9213566
88d3c61
327aef2
ae42284
3b5b506
58d500b
4ab304a
2de1d56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The goal here was to pass the Since the last two were already being placed in two different arrays of the same length, as well as a setting to return native balance, it's all been simplified by just passing to balance fetcher a single array that contains everything needed:
That way, BalanceFetcher does not need to know how to build the native assetId for every chain. Also, the token address passed to balance fetcher is always the zero address, regardless of the chain, as that is how BalanceFetcher determines whether to fetch the balance of a token or the balance of the account. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| export type { | ||
| Address, | ||
| AssetFetchEntry, | ||
| AssetsBalanceState, | ||
| ChainId, | ||
| GetProviderFunction, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the method signatures I have changed are internal, none of them are used in the clients. So I'm not marking it as breaking.