Skip to content

Commit

Permalink
update smoldot, remove provider logs
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Apr 29, 2024
1 parent c236149 commit e4b2e21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react-dom": "^18.2.0",
"react-virtuoso": "^4.7.10",
"rxjs": "^7.8.1",
"smoldot": "^2.0.24",
"smoldot": "^2.0.25",
"tailwind-merge": "^2.3.0"
}
}
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

4 changes: 0 additions & 4 deletions src/api/metadatas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { V14, V15 } from "@polkadot-api/substrate-bindings"
import { createClient } from "@polkadot-api/substrate-client"
import { state } from "@react-rxjs/core"
import { get, set } from "idb-keyval"
import { withLogsRecorder } from "polkadot-api/logs-provider"
import { getSmProvider } from "polkadot-api/sm-provider"
import { mapObject } from "polkadot-api/utils"
import {
Expand All @@ -30,9 +29,6 @@ export const useCache$ = state(changeUseCache$, true)
export const metadatas = mapObject(chains, (chain, key) => {
const throughSmoldot$ = from(chain).pipe(
map(getSmProvider),
map((provider) =>
withLogsRecorder((log) => console.log(key, log), provider),
),
map(createClient),
map(getObservableClient),
switchMap((observableClient) => {
Expand Down

0 comments on commit e4b2e21

Please sign in to comment.