@0xsequence/provider 1.1.15 → 1.2.0
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.
|
@@ -2184,7 +2184,7 @@ class WalletRequestHandler {
|
|
|
2184
2184
|
if (!account) throw new Error('WalletRequestHandler: wallet account is not configured');
|
|
2185
2185
|
|
|
2186
2186
|
// fetch the provider for the specific chain, or undefined will select defaultChain
|
|
2187
|
-
const provider = (_this$account = _this.account) == null ? void 0 : _this$account.
|
|
2187
|
+
const provider = (_this$account = _this.account) == null ? void 0 : _this$account.providerFor(chainId != null ? chainId : _this.defaultChainId());
|
|
2188
2188
|
if (!provider) throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${chainId}`);
|
|
2189
2189
|
const jsonRpcProvider = provider instanceof ethers.ethers.providers.JsonRpcProvider ? provider : undefined;
|
|
2190
2190
|
switch (request.method) {
|
|
@@ -3513,7 +3513,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3513
3513
|
|
|
3514
3514
|
var packageJson = {
|
|
3515
3515
|
name: "@0xsequence/provider",
|
|
3516
|
-
version: "1.
|
|
3516
|
+
version: "1.2.0",
|
|
3517
3517
|
description: "provider sub-package for Sequence",
|
|
3518
3518
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3519
3519
|
source: "src/index.ts",
|
|
@@ -2184,7 +2184,7 @@ class WalletRequestHandler {
|
|
|
2184
2184
|
if (!account) throw new Error('WalletRequestHandler: wallet account is not configured');
|
|
2185
2185
|
|
|
2186
2186
|
// fetch the provider for the specific chain, or undefined will select defaultChain
|
|
2187
|
-
const provider = (_this$account = _this.account) == null ? void 0 : _this$account.
|
|
2187
|
+
const provider = (_this$account = _this.account) == null ? void 0 : _this$account.providerFor(chainId != null ? chainId : _this.defaultChainId());
|
|
2188
2188
|
if (!provider) throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${chainId}`);
|
|
2189
2189
|
const jsonRpcProvider = provider instanceof ethers.ethers.providers.JsonRpcProvider ? provider : undefined;
|
|
2190
2190
|
switch (request.method) {
|
|
@@ -3513,7 +3513,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3513
3513
|
|
|
3514
3514
|
var packageJson = {
|
|
3515
3515
|
name: "@0xsequence/provider",
|
|
3516
|
-
version: "1.
|
|
3516
|
+
version: "1.2.0",
|
|
3517
3517
|
description: "provider sub-package for Sequence",
|
|
3518
3518
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3519
3519
|
source: "src/index.ts",
|
|
@@ -2180,7 +2180,7 @@ class WalletRequestHandler {
|
|
|
2180
2180
|
if (!account) throw new Error('WalletRequestHandler: wallet account is not configured');
|
|
2181
2181
|
|
|
2182
2182
|
// fetch the provider for the specific chain, or undefined will select defaultChain
|
|
2183
|
-
const provider = (_this$account = _this.account) == null ? void 0 : _this$account.
|
|
2183
|
+
const provider = (_this$account = _this.account) == null ? void 0 : _this$account.providerFor(chainId != null ? chainId : _this.defaultChainId());
|
|
2184
2184
|
if (!provider) throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${chainId}`);
|
|
2185
2185
|
const jsonRpcProvider = provider instanceof ethers.providers.JsonRpcProvider ? provider : undefined;
|
|
2186
2186
|
switch (request.method) {
|
|
@@ -3509,7 +3509,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3509
3509
|
|
|
3510
3510
|
var packageJson = {
|
|
3511
3511
|
name: "@0xsequence/provider",
|
|
3512
|
-
version: "1.
|
|
3512
|
+
version: "1.2.0",
|
|
3513
3513
|
description: "provider sub-package for Sequence",
|
|
3514
3514
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3515
3515
|
source: "src/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/provider",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "provider sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"eventemitter2": "^6.4.5",
|
|
13
13
|
"webextension-polyfill": "^0.10.0",
|
|
14
|
-
"@0xsequence/abi": "1.
|
|
15
|
-
"@0xsequence/account": "1.
|
|
16
|
-
"@0xsequence/
|
|
17
|
-
"@0xsequence/
|
|
18
|
-
"@0xsequence/
|
|
19
|
-
"@0xsequence/
|
|
20
|
-
"@0xsequence/
|
|
21
|
-
"@0xsequence/
|
|
22
|
-
"@0xsequence/wallet": "1.
|
|
14
|
+
"@0xsequence/abi": "1.2.0",
|
|
15
|
+
"@0xsequence/account": "1.2.0",
|
|
16
|
+
"@0xsequence/core": "1.2.0",
|
|
17
|
+
"@0xsequence/auth": "1.2.0",
|
|
18
|
+
"@0xsequence/network": "1.2.0",
|
|
19
|
+
"@0xsequence/utils": "1.2.0",
|
|
20
|
+
"@0xsequence/migration": "1.2.0",
|
|
21
|
+
"@0xsequence/relayer": "1.2.0",
|
|
22
|
+
"@0xsequence/wallet": "1.2.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"ethers": ">=5.5 < 6"
|
|
@@ -253,7 +253,7 @@ export class WalletRequestHandler implements ExternalProvider, JsonRpcHandler, P
|
|
|
253
253
|
if (!account) throw new Error('WalletRequestHandler: wallet account is not configured')
|
|
254
254
|
|
|
255
255
|
// fetch the provider for the specific chain, or undefined will select defaultChain
|
|
256
|
-
const provider = this.account?.
|
|
256
|
+
const provider = this.account?.providerFor(chainId ?? this.defaultChainId())
|
|
257
257
|
if (!provider) throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${chainId}`)
|
|
258
258
|
const jsonRpcProvider = provider instanceof ethers.providers.JsonRpcProvider ? provider : undefined
|
|
259
259
|
|