@injectivelabs/wallet-turnkey 1.20.29 → 1.20.31
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/cjs/index.cjs +2 -1
- package/dist/esm/index.js +2 -1
- package/package.json +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -491,6 +491,7 @@ const signMessageMethods = new Set([
|
|
|
491
491
|
"personal_sign",
|
|
492
492
|
"eth_signMessage"
|
|
493
493
|
]);
|
|
494
|
+
const sendTransactionMethods = new Set(["eth_sendTransaction", "wallet_sendTransaction"]);
|
|
494
495
|
const parseChainId = (chainId) => {
|
|
495
496
|
if (typeof chainId === "number") return chainId;
|
|
496
497
|
if (chainId.startsWith("0x")) return parseInt(chainId.replace("0x", ""), 16);
|
|
@@ -616,7 +617,7 @@ var CustomEip1193Provider = class {
|
|
|
616
617
|
this.chainId = parseChainId(args.params[0].chainId);
|
|
617
618
|
return true;
|
|
618
619
|
}
|
|
619
|
-
if (args.method
|
|
620
|
+
if (sendTransactionMethods.has(args.method)) {
|
|
620
621
|
if (!args.params) throw new Error("params is required");
|
|
621
622
|
const accountClient = (0, __injectivelabs_wallet_base.getViemWalletClient)({
|
|
622
623
|
chainId: this.chainId,
|
package/dist/esm/index.js
CHANGED
|
@@ -491,6 +491,7 @@ const signMessageMethods = new Set([
|
|
|
491
491
|
"personal_sign",
|
|
492
492
|
"eth_signMessage"
|
|
493
493
|
]);
|
|
494
|
+
const sendTransactionMethods = new Set(["eth_sendTransaction", "wallet_sendTransaction"]);
|
|
494
495
|
const parseChainId = (chainId) => {
|
|
495
496
|
if (typeof chainId === "number") return chainId;
|
|
496
497
|
if (chainId.startsWith("0x")) return parseInt(chainId.replace("0x", ""), 16);
|
|
@@ -616,7 +617,7 @@ var CustomEip1193Provider = class {
|
|
|
616
617
|
this.chainId = parseChainId(args.params[0].chainId);
|
|
617
618
|
return true;
|
|
618
619
|
}
|
|
619
|
-
if (args.method
|
|
620
|
+
if (sendTransactionMethods.has(args.method)) {
|
|
620
621
|
if (!args.params) throw new Error("params is required");
|
|
621
622
|
const accountClient = getViemWalletClient({
|
|
622
623
|
chainId: this.chainId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-turnkey",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.31",
|
|
4
4
|
"description": "Turnkey wallet strategy for use with @injectivelabs/wallet-core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@turnkey/sdk-browser": "5.16.1",
|
|
46
46
|
"@turnkey/viem": "0.13.1",
|
|
47
47
|
"viem": "^2.54.6",
|
|
48
|
-
"@injectivelabs/exceptions": "1.20.
|
|
49
|
-
"@injectivelabs/ts-types": "1.20.
|
|
50
|
-
"@injectivelabs/sdk-ts": "1.20.
|
|
51
|
-
"@injectivelabs/wallet-base": "1.20.
|
|
52
|
-
"@injectivelabs/utils": "1.20.
|
|
48
|
+
"@injectivelabs/exceptions": "1.20.31",
|
|
49
|
+
"@injectivelabs/ts-types": "1.20.31",
|
|
50
|
+
"@injectivelabs/sdk-ts": "1.20.31",
|
|
51
|
+
"@injectivelabs/wallet-base": "1.20.31",
|
|
52
|
+
"@injectivelabs/utils": "1.20.31"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|