Skip to content
Open
Changes from all commits
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
6 changes: 6 additions & 0 deletions utils/hardhat-storage/src/tasks/dump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ task(TASK_STORAGE_DUMP, 'Dump storage slots to a file')

const { contracts, getArtifact } = await hre.run(SUBTASK_GET_ARTIFACTS);

if (!contracts.length) {
logger.warn(
'WARN: No contracts were found for storage checking, and your storage dump will be empty. Please check (and possibly add) a storage configuration in your hardhat configuration and try again.'
);
}

if (!noValidate) {
await hre.run(SUBTASK_VALIDATE_CONTRACTS, { contracts, getArtifact });
}
Expand Down