File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 "@polkadot/extension-inject" : " 0.48.3-2-x" ,
2323 "@polkadot/extension-ui" : " 0.48.3-2-x" ,
2424 "@substrate/light-client-extension-helpers" : " ^2.0.2" ,
25- "@substrate/smoldot-discovery" : " ^0.0.6 " ,
25+ "@substrate/smoldot-discovery" : " ^0.0.7 " ,
2626 "smoldot" : " ^2.0.29" ,
2727 "tslib" : " ^2.6.2"
2828 },
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { MESSAGE_ORIGIN_CONTENT } from '@polkadot/extension-base/defaults';
1111import { enable , handleResponse , redirectIfPhishing } from '@polkadot/extension-base/page' ;
1212import { injectExtension } from '@polkadot/extension-inject' ;
1313
14- import { createScClient } from './connector.js' ;
14+ import { connector } from "@substrate/smoldot-discovery"
1515import { CHANNEL_ID } from './constants.js' ;
1616import { packageInfo } from './packageInfo.js' ;
1717
@@ -26,7 +26,8 @@ const lightClientProvider = getLightClientProvider(CHANNEL_ID);
2626
2727// #region Smoldot Discovery Provider
2828{
29- const provider = lightClientProvider . then ( createScClient ) ;
29+ const provider = lightClientProvider
30+ . then ( ( provider ) => connector . make ( { lightClientProvider : provider } ) ) ;
3031
3132 const detail : SmoldotExtensionProviderDetail = Object . freeze ( {
3233 kind : 'smoldot-v1' ,
@@ -47,7 +48,7 @@ const lightClientProvider = getLightClientProvider(CHANNEL_ID);
4748}
4849// #endregion
4950
50- function inject ( ) {
51+ function inject ( ) {
5152 injectExtension ( enable , {
5253 name : 'polkadot-js' ,
5354 version : packageInfo . version
Original file line number Diff line number Diff line change @@ -1107,7 +1107,7 @@ __metadata:
11071107 "@polkadot/extension-inject": "npm:0.48.3-2-x"
11081108 "@polkadot/extension-ui": "npm:0.48.3-2-x"
11091109 "@substrate/light-client-extension-helpers": "npm:^2.0.2"
1110- "@substrate/smoldot-discovery": "npm:^0.0.6 "
1110+ "@substrate/smoldot-discovery": "npm:^0.0.7 "
11111111 browser-resolve: "npm:^2.0.0"
11121112 buffer: "npm:^6.0.3"
11131113 copy-webpack-plugin: "npm:^11.0.0"
@@ -1987,12 +1987,14 @@ __metadata:
19871987 languageName: node
19881988 linkType: hard
19891989
1990- "@substrate/smoldot-discovery@npm:^0.0.6 ":
1991- version: 0.0.6
1992- resolution: "@substrate/smoldot-discovery@npm:0.0.6 "
1990+ "@substrate/smoldot-discovery@npm:^0.0.7 ":
1991+ version: 0.0.7
1992+ resolution: "@substrate/smoldot-discovery@npm:0.0.7 "
19931993 dependencies:
19941994 "@substrate/discovery": "npm:^0.0.1"
1995- checksum: 10/4147035c86f7331dc8095a82c0ff1223a4bb9cc2ebe266e2ac5398d53f1d1b655ce3ee17499bfddd2b49bae082a3ca279e93f2787374dabd85d318c5cf0fe188
1995+ peerDependencies:
1996+ "@substrate/light-client-extension-helpers": ^2
1997+ checksum: 10/e13be406980cd74c48910285b991acc17411ad0289cdcebec9f073d93dddd11cd65527ba6c518e56e0103e89fa3286f3431b7efca8bd35863be6479faf6a3561
19961998 languageName: node
19971999 linkType: hard
19982000
You can’t perform that action at this time.
0 commit comments