Skip to content

Commit cb18e49

Browse files
committed
fix: issue 543
1 parent 6c943bb commit cb18e49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export class EdrProviderWrapper
354354
const responseObject: Response = await this._provider.handleRequest(
355355
stringifiedArgs
356356
);
357-
const response = JSON.parse(responseObject.json);
357+
const response = responseObject.data;
358358

359359
const needsTraces =
360360
this._node._vm.evm.events.eventNames().length > 0 ||

packages/hardhat-core/src/internal/hardhat-network/provider/vm/minimal-vm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function getMinimalEthereumJsVm(
8282
})
8383
);
8484

85-
const response = JSON.parse(responseObject.json);
85+
const response = responseObject.data;
8686

8787
return Buffer.from(response.result.slice(2), "hex");
8888
},

0 commit comments

Comments
 (0)