Skip to content

Commit

Permalink
fix: issue 543
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Jul 29, 2024
1 parent 6c943bb commit cb18e49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class EdrProviderWrapper
const responseObject: Response = await this._provider.handleRequest(
stringifiedArgs
);
const response = JSON.parse(responseObject.json);
const response = responseObject.data;

Check failure on line 357 in packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts

View workflow job for this annotation

GitHub Actions / Lint

Property 'data' does not exist on type 'Response'.

const needsTraces =
this._node._vm.evm.events.eventNames().length > 0 ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function getMinimalEthereumJsVm(
})
);

const response = JSON.parse(responseObject.json);
const response = responseObject.data;

Check failure on line 85 in packages/hardhat-core/src/internal/hardhat-network/provider/vm/minimal-vm.ts

View workflow job for this annotation

GitHub Actions / Lint

Property 'data' does not exist on type 'Response'.

return Buffer.from(response.result.slice(2), "hex");
},
Expand Down

0 comments on commit cb18e49

Please sign in to comment.