Skip to content
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

Merged
merged 32 commits into from
Aug 12, 2024

Conversation

alex-tsx
Copy link
Collaborator

@alex-tsx alex-tsx commented Aug 1, 2024

@alex-tsx alex-tsx self-assigned this Aug 1, 2024
@alex-tsx alex-tsx added the EVM label Aug 1, 2024
// Polygon Testnet
/** Polygon Testnet
* @deprecated https://www.alchemy.com/blog/polygon-mumbai-testnet-deprecation
*/
80001: '0x0000000000000000000000000000000000001010'
Copy link
Collaborator

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?

Copy link
Collaborator Author

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';


export const useAllTezosChainAccountCollectiblesSlugs = (publicKeyHash: string, chainId: string) => {
const collectibles = useTezosChainAccountCollectibles(publicKeyHash, chainId);
for (const [slug, { status }] of Object.entries(stored)) {
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree


export const useAllEvmChainAccountCollectiblesSlugs = (publicKeyHash: HexString, evmChainId: number) => {
const collectibles = useEvmChainAccountCollectibles(publicKeyHash, evmChainId);
for (const [slug, { status }] of Object.entries(stored)) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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
},
{
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ Added

@alex-tsx alex-tsx merged commit 4d88532 into TW-1343-epic-evm-arch-prep Aug 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants