Comparing version 2.22.7 to 2.22.8
@@ -218,3 +218,9 @@ "use strict"; | ||
const responseObject = await this._provider.handleRequest(stringifiedArgs); | ||
const response = JSON.parse(responseObject.json); | ||
let response; | ||
if (typeof responseObject.data === "string") { | ||
response = JSON.parse(responseObject.data); | ||
} | ||
else { | ||
response = responseObject.data; | ||
} | ||
const needsTraces = this._node._vm.evm.events.eventNames().length > 0 || | ||
@@ -221,0 +227,0 @@ this._node._vm.events.eventNames().length > 0 || |
@@ -29,3 +29,9 @@ "use strict"; | ||
})); | ||
const response = JSON.parse(responseObject.json); | ||
let response; | ||
if (typeof responseObject.data === "string") { | ||
response = JSON.parse(responseObject.data); | ||
} | ||
else { | ||
response = responseObject.data; | ||
} | ||
return Buffer.from(response.result.slice(2), "hex"); | ||
@@ -32,0 +38,0 @@ }, |
{ | ||
"name": "hardhat", | ||
"version": "2.22.7", | ||
"version": "2.22.8", | ||
"author": "Nomic Labs LLC", | ||
@@ -88,3 +88,3 @@ "license": "MIT", | ||
"@metamask/eth-sig-util": "^4.0.0", | ||
"@nomicfoundation/edr": "^0.5.0", | ||
"@nomicfoundation/edr": "^0.5.2", | ||
"@nomicfoundation/ethereumjs-common": "4.0.4", | ||
@@ -91,0 +91,0 @@ "@nomicfoundation/ethereumjs-tx": "5.0.4", |
@@ -357,4 +357,10 @@ import type { | ||
); | ||
const response = JSON.parse(responseObject.json); | ||
let response; | ||
if (typeof responseObject.data === "string") { | ||
response = JSON.parse(responseObject.data); | ||
} else { | ||
response = responseObject.data; | ||
} | ||
const needsTraces = | ||
@@ -361,0 +367,0 @@ this._node._vm.evm.events.eventNames().length > 0 || |
@@ -85,3 +85,8 @@ import type { Provider as EdrProviderT } from "@nomicfoundation/edr"; | ||
const response = JSON.parse(responseObject.json); | ||
let response; | ||
if (typeof responseObject.data === "string") { | ||
response = JSON.parse(responseObject.data); | ||
} else { | ||
response = responseObject.data; | ||
} | ||
@@ -88,0 +93,0 @@ return Buffer.from(response.result.slice(2), "hex"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3099023
56814
Updated@nomicfoundation/edr@^0.5.2