@exodus/web3-ethereum 12.21.0 → 12.21.2
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.
|
@@ -149,6 +149,7 @@ export function exposeHandlers(rpc, deps) {
|
|
|
149
149
|
}
|
|
150
150
|
async function approveAndSignTransaction(transaction) {
|
|
151
151
|
await assertTrusted();
|
|
152
|
+
await ensureUnlocked();
|
|
152
153
|
const asset = await getAsset(network);
|
|
153
154
|
const preparedTransaction = await prepareTransaction(transaction);
|
|
154
155
|
validateTransaction(preparedTransaction);
|
|
@@ -180,6 +181,7 @@ export function exposeHandlers(rpc, deps) {
|
|
|
180
181
|
}
|
|
181
182
|
async function approveAndSignMessage(message) {
|
|
182
183
|
await assertTrusted();
|
|
184
|
+
await ensureUnlocked();
|
|
183
185
|
await approve(approveMessage, network, message);
|
|
184
186
|
const walletAccount = await getActiveWalletAccountData();
|
|
185
187
|
const asset = await getAsset(network);
|
|
@@ -194,6 +196,7 @@ export function exposeHandlers(rpc, deps) {
|
|
|
194
196
|
}
|
|
195
197
|
async function approveAndSignTypedData(typedData) {
|
|
196
198
|
await assertTrusted();
|
|
199
|
+
await ensureUnlocked();
|
|
197
200
|
const parsedTypedData = parseAndValidateTypedData(typedData, { chainId });
|
|
198
201
|
const message = typedDataToMessage(typedData, SignTypedDataVersion.V4);
|
|
199
202
|
await approve(approveMessage, network, message);
|
|
@@ -252,6 +255,7 @@ export function exposeHandlers(rpc, deps) {
|
|
|
252
255
|
approveAndSignMessage(message));
|
|
253
256
|
exposeEvmFunction('eth_signTypedData_v1', async (typedData) => {
|
|
254
257
|
await assertTrusted();
|
|
258
|
+
await ensureUnlocked();
|
|
255
259
|
const message = typedDataToMessage(typedData, SignTypedDataVersion.V1);
|
|
256
260
|
await approve(approveMessage, network, message);
|
|
257
261
|
const walletAccount = await getActiveWalletAccountData();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/web3-ethereum",
|
|
3
3
|
"description": "Apps connectivity library for EVM-compatible chains.",
|
|
4
|
-
"version": "12.21.
|
|
4
|
+
"version": "12.21.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@exodus/currency": "^2.1.2",
|
|
36
36
|
"@exodus/ethereum-api": "^6.3.33",
|
|
37
37
|
"@exodus/web3-constants": "^1.30.0",
|
|
38
|
-
"@exodus/web3-ethereum-utils": "^3.
|
|
38
|
+
"@exodus/web3-ethereum-utils": "^3.34.0",
|
|
39
39
|
"@exodus/web3-provider": "^3.15.0",
|
|
40
40
|
"@exodus/web3-rpc-handlers": "^2.25.0",
|
|
41
|
-
"@exodus/web3-utils": "^1.
|
|
41
|
+
"@exodus/web3-utils": "^1.47.0",
|
|
42
42
|
"bn.js": "^5.2.0",
|
|
43
43
|
"eth-rpc-errors": "^4.0.3"
|
|
44
44
|
},
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"@exodus/web3-validation": "^1.38.0",
|
|
52
52
|
"@wallet-standard/base": "^1.0.1"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "fbff6236b1adf18931a2b7ef888907ec67fa62e4"
|
|
55
55
|
}
|