@orderly.network/hooks 0.0.38 → 0.0.39
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/index.d.mts +0 -332
- package/dist/index.d.ts +0 -332
package/dist/index.js
CHANGED
|
@@ -98,7 +98,7 @@ var useQuery = (query, options) => {
|
|
|
98
98
|
);
|
|
99
99
|
};
|
|
100
100
|
var useAccountInstance = () => {
|
|
101
|
-
const { configStore, keyStore, contractManager,
|
|
101
|
+
const { configStore, keyStore, contractManager, getWalletAdapter } = React2.useContext(OrderlyContext);
|
|
102
102
|
if (!configStore)
|
|
103
103
|
throw new Error("configStore is not defined, please use OrderlyProvider");
|
|
104
104
|
if (!keyStore) {
|
|
@@ -113,7 +113,8 @@ var useAccountInstance = () => {
|
|
|
113
113
|
configStore,
|
|
114
114
|
keyStore,
|
|
115
115
|
contractManager,
|
|
116
|
-
|
|
116
|
+
getWalletAdapter
|
|
117
|
+
// walletAdapter
|
|
117
118
|
);
|
|
118
119
|
core.SimpleDI.registerByName("account", account6);
|
|
119
120
|
}
|