Skip to content

Commit

Permalink
fix: should use mainnet create native token when fetch asset (#8455)
Browse files Browse the repository at this point in the history
* fix: should use mainnet create native token when fetch asset

* fix: remove suspense to avoid re-render
  • Loading branch information
Lanttcat committed Jan 13, 2023
1 parent 3af5df3 commit b3724f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions packages/dashboard/src/Dashboard.tsx
@@ -1,10 +1,6 @@
import { lazy, Suspense } from 'react'
import { lazy } from 'react'

const Dashboard = lazy(() => import(/* webpackPreload: true */ './initialization/Dashboard.js'))
export function IntegratedDashboard() {
return (
<Suspense fallback="">
<Dashboard />
</Suspense>
)
return <Dashboard />
}
2 changes: 1 addition & 1 deletion packages/web3-providers/src/helpers/getNativeAssets.ts
Expand Up @@ -2,7 +2,7 @@ import type { FungibleAsset } from '@masknet/web3-shared-base'
import { ChainId, createNativeToken, NETWORK_DESCRIPTORS, SchemaType } from '@masknet/web3-shared-evm'

export function getNativeAssets(): Array<FungibleAsset<ChainId, SchemaType>> {
return NETWORK_DESCRIPTORS.map((x) => ({
return NETWORK_DESCRIPTORS.filter((x) => x.isMainnet).map((x) => ({
...createNativeToken(x.chainId),
balance: '0',
}))
Expand Down

0 comments on commit b3724f9

Please sign in to comment.