@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.mjs
CHANGED
|
@@ -89,7 +89,7 @@ var useQuery = (query, options) => {
|
|
|
89
89
|
);
|
|
90
90
|
};
|
|
91
91
|
var useAccountInstance = () => {
|
|
92
|
-
const { configStore, keyStore, contractManager,
|
|
92
|
+
const { configStore, keyStore, contractManager, getWalletAdapter } = useContext(OrderlyContext);
|
|
93
93
|
if (!configStore)
|
|
94
94
|
throw new Error("configStore is not defined, please use OrderlyProvider");
|
|
95
95
|
if (!keyStore) {
|
|
@@ -104,7 +104,8 @@ var useAccountInstance = () => {
|
|
|
104
104
|
configStore,
|
|
105
105
|
keyStore,
|
|
106
106
|
contractManager,
|
|
107
|
-
|
|
107
|
+
getWalletAdapter
|
|
108
|
+
// walletAdapter
|
|
108
109
|
);
|
|
109
110
|
SimpleDI.registerByName("account", account6);
|
|
110
111
|
}
|