Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a function and editing the error message for the issue #4151 #4208

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix linter errors
alcuadrado committed May 17, 2024
commit 56938ed194dfb92ad9e3d02a4093954c44c881a8
2 changes: 1 addition & 1 deletion packages/hardhat-network-helpers/src/helpers/reset.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ export async function reset(
blockNumber?: NumberLike
): Promise<void> {
const provider = await getHardhatProvider();
clearSnapshots();
await clearSnapshots();
if (url === undefined) {
await provider.request({
method: "hardhat_reset",
2 changes: 1 addition & 1 deletion packages/hardhat-network-helpers/test/helpers/reset.ts
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ describe("resetWithoutFork", function () {
});
});

describe("should clear snapshot upon reset", async function () {
describe("should clear snapshot upon reset", function () {
useEnvironment("simple");
it("checks if the snapshot is cleared upon hardhat_reset", async function () {
const snapshotBeforeReset = await hh.takeSnapshot();