@sodax/dapp-kit 1.3.1-beta → 1.4.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/hooks/provider/useSpokeProvider.ts +15 -0
package/dist/index.js
CHANGED
|
@@ -216,6 +216,15 @@ function useSpokeProvider(spokeChainId, walletProvider) {
|
|
|
216
216
|
sdk.spokeChainConfig[spokeChainId]
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
+
if (xChainType === "STACKS") {
|
|
220
|
+
return new sdk.StacksSpokeProvider(
|
|
221
|
+
rpcConfig[spokeChainId] ? {
|
|
222
|
+
...sdk.spokeChainConfig[spokeChainId],
|
|
223
|
+
rpcUrl: rpcConfig[spokeChainId]
|
|
224
|
+
} : sdk.spokeChainConfig[spokeChainId],
|
|
225
|
+
walletProvider
|
|
226
|
+
);
|
|
227
|
+
}
|
|
219
228
|
return void 0;
|
|
220
229
|
}, [spokeChainId, xChainType, walletProvider, rpcConfig]);
|
|
221
230
|
return spokeProvider;
|