@getpara/wagmi-v2-integration 1.4.4-dev.3 → 1.4.4-dev.4
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 -4
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115,8 +115,7 @@ var ParaEIP1193Provider = class extends EventEmitter {
|
|
|
115
115
|
const { method, params } = args;
|
|
116
116
|
switch (method) {
|
|
117
117
|
case "eth_accounts": {
|
|
118
|
-
|
|
119
|
-
return accounts || [];
|
|
118
|
+
return this.accounts;
|
|
120
119
|
}
|
|
121
120
|
case "eth_chainId": {
|
|
122
121
|
return this.currentHexChainId;
|
|
@@ -262,7 +261,7 @@ var ParaEIP1193Provider = class extends EventEmitter {
|
|
|
262
261
|
if (await this.para.isFullyLoggedIn()) {
|
|
263
262
|
return true;
|
|
264
263
|
}
|
|
265
|
-
if (this.isModalClosed) {
|
|
264
|
+
if (!this.disableModal && this.isModalClosed) {
|
|
266
265
|
throw new ProviderRpcError(new Error("user closed modal"), {
|
|
267
266
|
code: 4001,
|
|
268
267
|
shortMessage: "user closed modal"
|
|
@@ -280,7 +279,7 @@ var ParaEIP1193Provider = class extends EventEmitter {
|
|
|
280
279
|
const startTime = Date.now();
|
|
281
280
|
while (Date.now() - startTime < timeoutMs) {
|
|
282
281
|
const accounts = this.accounts;
|
|
283
|
-
if (accounts
|
|
282
|
+
if (accounts.length > 0) {
|
|
284
283
|
return accounts;
|
|
285
284
|
}
|
|
286
285
|
await new Promise((resolve) => setTimeout(resolve, 500));
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|