@exodus/web3-ethereum-utils 4.7.1 → 4.7.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.
|
@@ -178,6 +178,14 @@ export const simulateTransactions = async ({ transactions, apiEndpoint, origin,
|
|
|
178
178
|
};
|
|
179
179
|
simulationResult.warnings.push(warning);
|
|
180
180
|
}
|
|
181
|
+
else if (action === 'WARN') {
|
|
182
|
+
const warning = {
|
|
183
|
+
kind: 'SUSPICIOUS_ACTION',
|
|
184
|
+
severity: 'MEDIUM',
|
|
185
|
+
message: 'This transaction may be suspicious. Proceed with caution.',
|
|
186
|
+
};
|
|
187
|
+
simulationResult.warnings.push(warning);
|
|
188
|
+
}
|
|
181
189
|
const noExpectedStateChangesDetected = Object.keys(expectedStateChanges).length === 0;
|
|
182
190
|
// This is a self-send transaction, adding a zero "transfer" so that the UI can display it.
|
|
183
191
|
if (noExpectedStateChangesDetected) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/web3-ethereum-utils",
|
|
3
3
|
"description": "Web3 Ethereum utils.",
|
|
4
|
-
"version": "4.7.
|
|
4
|
+
"version": "4.7.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "run -T exodus-test --jest --esbuild"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@exodus/web3-types": "1.59.
|
|
38
|
+
"@exodus/web3-types": "1.59.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@exodus/basic-utils": "^3.0.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Aweb3-ethereum-utils"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/ExodusMovement/assets/tree/master/web3/web3-ethereum-utils",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "b8caae006a00c4d6c065732eb99183a15c169f72"
|
|
54
54
|
}
|