Skip to content

Commit

Permalink
fix smoldot disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Apr 29, 2024
1 parent 3cd0c10 commit c236149
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.3.2",
"vite": "^5.2.0"
},
"prettier": {
"printWidth": 80,
"semi": false,
"trailingComma": "all"
},
"dependencies": {
"@polkadot-api/codegen": "^0.3.0",
"@polkadot-api/metadata-builders": "^0.2.0",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/api/smoldot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const chains: Record<string, Promise<Chain>> = Object.fromEntries(
Object.entries(chainImports).flatMap(([key, chains]) => {
const { relayChain, ...parachains } = chains

const chainRelayChain = new Promise<Chain>(() => {})
relayChain.then(({ chainSpec }) =>
const chainRelayChain = relayChain.then(({ chainSpec }) =>
smoldot.addChain({
chainSpec,
}),
Expand Down

0 comments on commit c236149

Please sign in to comment.