-
Notifications
You must be signed in to change notification settings - Fork 62
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
TW-1461: [EVM][QA] Final arch prep epic QA #1177
TW-1461: [EVM][QA] Final arch prep epic QA #1177
Conversation
…from chain. Refactor EVM Balances loading state
…ata loading by falling back to loading from chain
…Y as a leading asset
…e. Rate wasnt loading for users with 0 balance
…ess cycles in collectibles rendering
…ess cycles in tokens rendering
…ix metadata loading for multichain view
…ogic hooks. Fix grouping in manage active tab
src/app/hooks/listing-logic/use-tezos-chain-collectibles-listing-logic.ts
Outdated
Show resolved
Hide resolved
// Polygon Testnet | ||
/** Polygon Testnet | ||
* @deprecated https://www.alchemy.com/blog/polygon-mumbai-testnet-deprecation | ||
*/ | ||
80001: '0x0000000000000000000000000000000000001010' |
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.
Should we add Amoy testnet in this case?
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.
No, Amoy has default value for this fake gas token address (see above in code):
const DEFAULT_NATIVE_TOKEN_ADDRESS = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee';
src/lib/assets/hooks/collectibles.ts
Outdated
|
||
export const useAllTezosChainAccountCollectiblesSlugs = (publicKeyHash: string, chainId: string) => { | ||
const collectibles = useTezosChainAccountCollectibles(publicKeyHash, chainId); | ||
for (const [slug, { status }] of Object.entries(stored)) { |
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.
Should we use Object.entries(stored).filter(...).map(...)
here instead for better performance?
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.
Agree
src/lib/assets/hooks/collectibles.ts
Outdated
|
||
export const useAllEvmChainAccountCollectiblesSlugs = (publicKeyHash: HexString, evmChainId: number) => { | ||
const collectibles = useEvmChainAccountCollectibles(publicKeyHash, evmChainId); | ||
for (const [slug, { status }] of Object.entries(stored)) { |
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.
Here is the same code as for the comment above, please consider additional refactoring
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.
Agree
@@ -188,15 +188,6 @@ export const EVM_DEFAULT_NETWORKS: NonEmptyArray<StoredEvmNetwork> = [ | |||
color: '#010b79', | |||
default: true | |||
}, | |||
{ |
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.
Please consider adding Amoy testnet here too
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.
+ Added
fa6f009
to
5def207
Compare
https://madfish.atlassian.net/browse/TW-1461