@0xsequence/provider 1.2.9 → 1.3.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.
|
@@ -2341,9 +2341,10 @@ class WalletRequestHandler {
|
|
|
2341
2341
|
validateTransactionRequest(account.address, transactionParams);
|
|
2342
2342
|
let txnHash = '';
|
|
2343
2343
|
if (_this.prompter === null) {
|
|
2344
|
+
var _txnResponse$hash;
|
|
2344
2345
|
// prompter is null, so we'll send from here
|
|
2345
2346
|
const txnResponse = await account.sendTransaction(transactionParams, chainId != null ? chainId : _this.defaultChainId());
|
|
2346
|
-
txnHash = txnResponse.hash;
|
|
2347
|
+
txnHash = (_txnResponse$hash = txnResponse == null ? void 0 : txnResponse.hash) != null ? _txnResponse$hash : '';
|
|
2347
2348
|
} else {
|
|
2348
2349
|
// prompt user to provide the response
|
|
2349
2350
|
txnHash = await _this.prompter.promptSendTransaction(transactionParams, chainId, _this.connectOptions);
|
|
@@ -3532,7 +3533,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3532
3533
|
|
|
3533
3534
|
var packageJson = {
|
|
3534
3535
|
name: "@0xsequence/provider",
|
|
3535
|
-
version: "1.
|
|
3536
|
+
version: "1.3.0",
|
|
3536
3537
|
description: "provider sub-package for Sequence",
|
|
3537
3538
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3538
3539
|
source: "src/index.ts",
|
|
@@ -2341,9 +2341,10 @@ class WalletRequestHandler {
|
|
|
2341
2341
|
validateTransactionRequest(account.address, transactionParams);
|
|
2342
2342
|
let txnHash = '';
|
|
2343
2343
|
if (_this.prompter === null) {
|
|
2344
|
+
var _txnResponse$hash;
|
|
2344
2345
|
// prompter is null, so we'll send from here
|
|
2345
2346
|
const txnResponse = await account.sendTransaction(transactionParams, chainId != null ? chainId : _this.defaultChainId());
|
|
2346
|
-
txnHash = txnResponse.hash;
|
|
2347
|
+
txnHash = (_txnResponse$hash = txnResponse == null ? void 0 : txnResponse.hash) != null ? _txnResponse$hash : '';
|
|
2347
2348
|
} else {
|
|
2348
2349
|
// prompt user to provide the response
|
|
2349
2350
|
txnHash = await _this.prompter.promptSendTransaction(transactionParams, chainId, _this.connectOptions);
|
|
@@ -3532,7 +3533,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3532
3533
|
|
|
3533
3534
|
var packageJson = {
|
|
3534
3535
|
name: "@0xsequence/provider",
|
|
3535
|
-
version: "1.
|
|
3536
|
+
version: "1.3.0",
|
|
3536
3537
|
description: "provider sub-package for Sequence",
|
|
3537
3538
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3538
3539
|
source: "src/index.ts",
|
|
@@ -2337,9 +2337,10 @@ class WalletRequestHandler {
|
|
|
2337
2337
|
validateTransactionRequest(account.address, transactionParams);
|
|
2338
2338
|
let txnHash = '';
|
|
2339
2339
|
if (_this.prompter === null) {
|
|
2340
|
+
var _txnResponse$hash;
|
|
2340
2341
|
// prompter is null, so we'll send from here
|
|
2341
2342
|
const txnResponse = await account.sendTransaction(transactionParams, chainId != null ? chainId : _this.defaultChainId());
|
|
2342
|
-
txnHash = txnResponse.hash;
|
|
2343
|
+
txnHash = (_txnResponse$hash = txnResponse == null ? void 0 : txnResponse.hash) != null ? _txnResponse$hash : '';
|
|
2343
2344
|
} else {
|
|
2344
2345
|
// prompt user to provide the response
|
|
2345
2346
|
txnHash = await _this.prompter.promptSendTransaction(transactionParams, chainId, _this.connectOptions);
|
|
@@ -3528,7 +3529,7 @@ class SingleNetworkSequenceProvider extends SequenceProvider {
|
|
|
3528
3529
|
|
|
3529
3530
|
var packageJson = {
|
|
3530
3531
|
name: "@0xsequence/provider",
|
|
3531
|
-
version: "1.
|
|
3532
|
+
version: "1.3.0",
|
|
3532
3533
|
description: "provider sub-package for Sequence",
|
|
3533
3534
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3534
3535
|
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.3.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/
|
|
15
|
-
"@0xsequence/
|
|
16
|
-
"@0xsequence/core": "1.
|
|
17
|
-
"@0xsequence/
|
|
18
|
-
"@0xsequence/
|
|
19
|
-
"@0xsequence/network": "1.
|
|
20
|
-
"@0xsequence/relayer": "1.
|
|
21
|
-
"@0xsequence/utils": "1.
|
|
22
|
-
"@0xsequence/wallet": "1.
|
|
14
|
+
"@0xsequence/abi": "1.3.0",
|
|
15
|
+
"@0xsequence/account": "1.3.0",
|
|
16
|
+
"@0xsequence/core": "1.3.0",
|
|
17
|
+
"@0xsequence/auth": "1.3.0",
|
|
18
|
+
"@0xsequence/migration": "1.3.0",
|
|
19
|
+
"@0xsequence/network": "1.3.0",
|
|
20
|
+
"@0xsequence/relayer": "1.3.0",
|
|
21
|
+
"@0xsequence/utils": "1.3.0",
|
|
22
|
+
"@0xsequence/wallet": "1.3.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"ethers": ">=5.5 < 6"
|
|
@@ -424,7 +424,7 @@ export class WalletRequestHandler implements ExternalProvider, JsonRpcHandler, P
|
|
|
424
424
|
if (this.prompter === null) {
|
|
425
425
|
// prompter is null, so we'll send from here
|
|
426
426
|
const txnResponse = await account.sendTransaction(transactionParams, chainId ?? this.defaultChainId())
|
|
427
|
-
txnHash = txnResponse
|
|
427
|
+
txnHash = txnResponse?.hash ?? ''
|
|
428
428
|
} else {
|
|
429
429
|
// prompt user to provide the response
|
|
430
430
|
txnHash = await this.prompter.promptSendTransaction(transactionParams, chainId, this.connectOptions)
|