@0xsequence/provider 0.40.5 → 0.41.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.
|
@@ -1631,7 +1631,7 @@ class Web3Signer extends wallet.Signer {
|
|
|
1631
1631
|
return hash;
|
|
1632
1632
|
}, error => {
|
|
1633
1633
|
// return checkError("sendTransaction", error, hexTx)
|
|
1634
|
-
throw
|
|
1634
|
+
throw error;
|
|
1635
1635
|
});
|
|
1636
1636
|
});
|
|
1637
1637
|
}
|
|
@@ -1699,6 +1699,13 @@ const hexlifyTransaction = (transaction, allowExtra) => {
|
|
|
1699
1699
|
|
|
1700
1700
|
result[key] = ethers.ethers.utils.hexlify(transaction[key]);
|
|
1701
1701
|
});
|
|
1702
|
+
['delegateCall', 'revertOnError'].forEach(key => {
|
|
1703
|
+
const value = transaction[key];
|
|
1704
|
+
|
|
1705
|
+
if (value !== undefined && value !== null) {
|
|
1706
|
+
result[key] = value;
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1702
1709
|
const auxiliary = transaction['auxiliary'];
|
|
1703
1710
|
|
|
1704
1711
|
if (auxiliary && auxiliary.length > 0) {
|
|
@@ -1631,7 +1631,7 @@ class Web3Signer extends wallet.Signer {
|
|
|
1631
1631
|
return hash;
|
|
1632
1632
|
}, error => {
|
|
1633
1633
|
// return checkError("sendTransaction", error, hexTx)
|
|
1634
|
-
throw
|
|
1634
|
+
throw error;
|
|
1635
1635
|
});
|
|
1636
1636
|
});
|
|
1637
1637
|
}
|
|
@@ -1699,6 +1699,13 @@ const hexlifyTransaction = (transaction, allowExtra) => {
|
|
|
1699
1699
|
|
|
1700
1700
|
result[key] = ethers.ethers.utils.hexlify(transaction[key]);
|
|
1701
1701
|
});
|
|
1702
|
+
['delegateCall', 'revertOnError'].forEach(key => {
|
|
1703
|
+
const value = transaction[key];
|
|
1704
|
+
|
|
1705
|
+
if (value !== undefined && value !== null) {
|
|
1706
|
+
result[key] = value;
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1702
1709
|
const auxiliary = transaction['auxiliary'];
|
|
1703
1710
|
|
|
1704
1711
|
if (auxiliary && auxiliary.length > 0) {
|
|
@@ -1627,7 +1627,7 @@ class Web3Signer extends Signer {
|
|
|
1627
1627
|
return hash;
|
|
1628
1628
|
}, error => {
|
|
1629
1629
|
// return checkError("sendTransaction", error, hexTx)
|
|
1630
|
-
throw
|
|
1630
|
+
throw error;
|
|
1631
1631
|
});
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
@@ -1695,6 +1695,13 @@ const hexlifyTransaction = (transaction, allowExtra) => {
|
|
|
1695
1695
|
|
|
1696
1696
|
result[key] = ethers.utils.hexlify(transaction[key]);
|
|
1697
1697
|
});
|
|
1698
|
+
['delegateCall', 'revertOnError'].forEach(key => {
|
|
1699
|
+
const value = transaction[key];
|
|
1700
|
+
|
|
1701
|
+
if (value !== undefined && value !== null) {
|
|
1702
|
+
result[key] = value;
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1698
1705
|
const auxiliary = transaction['auxiliary'];
|
|
1699
1706
|
|
|
1700
1707
|
if (auxiliary && auxiliary.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.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",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@0xsequence/abi": "^0.
|
|
17
|
-
"@0xsequence/auth": "^0.
|
|
18
|
-
"@0xsequence/config": "^0.
|
|
19
|
-
"@0xsequence/network": "^0.
|
|
20
|
-
"@0xsequence/transactions": "^0.
|
|
21
|
-
"@0xsequence/utils": "^0.
|
|
22
|
-
"@0xsequence/wallet": "^0.
|
|
16
|
+
"@0xsequence/abi": "^0.41.0",
|
|
17
|
+
"@0xsequence/auth": "^0.41.0",
|
|
18
|
+
"@0xsequence/config": "^0.41.0",
|
|
19
|
+
"@0xsequence/network": "^0.41.0",
|
|
20
|
+
"@0xsequence/transactions": "^0.41.0",
|
|
21
|
+
"@0xsequence/utils": "^0.41.0",
|
|
22
|
+
"@0xsequence/wallet": "^0.41.0",
|
|
23
23
|
"@ethersproject/abstract-signer": "^5.5.0",
|
|
24
24
|
"@ethersproject/hash": "^5.5.0",
|
|
25
25
|
"@ethersproject/providers": "^5.5.1",
|
package/src/provider.ts
CHANGED
|
@@ -66,7 +66,7 @@ export class Web3Provider extends EthersWeb3Provider implements JsonRpcHandler {
|
|
|
66
66
|
return this._sender.send(method, params, chainId)
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
request(request: { method: string; params?: Array<any
|
|
69
|
+
request(request: { method: string; params?: Array<any>; chainId?: number }): Promise<any> {
|
|
70
70
|
return this.send(request.method, request.params || [], request.chainId)
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -429,7 +429,7 @@ export class Web3Signer extends Signer implements TypedDataSigner {
|
|
|
429
429
|
},
|
|
430
430
|
error => {
|
|
431
431
|
// return checkError("sendTransaction", error, hexTx)
|
|
432
|
-
throw
|
|
432
|
+
throw error
|
|
433
433
|
}
|
|
434
434
|
)
|
|
435
435
|
})
|
|
@@ -498,6 +498,12 @@ const hexlifyTransaction = (
|
|
|
498
498
|
}
|
|
499
499
|
result[key] = ethers.utils.hexlify((<any>transaction)[key])
|
|
500
500
|
})
|
|
501
|
+
;['delegateCall', 'revertOnError'].forEach(key => {
|
|
502
|
+
const value = (transaction as any)[key]
|
|
503
|
+
if (value !== undefined && value !== null) {
|
|
504
|
+
result[key] = value
|
|
505
|
+
}
|
|
506
|
+
})
|
|
501
507
|
|
|
502
508
|
const auxiliary = <any>transaction['auxiliary']
|
|
503
509
|
if (auxiliary && auxiliary.length > 0) {
|