Commit cc4b0968 authored by Liam Horne's avatar Liam Horne Committed by GitHub

fix: ensure hardhat does not fail if no input sources provided (#688)

* fix: ensure hardhat does not fail if no input sources provided

* lint: fix

* chore: add changeset
Co-authored-by: default avatarsmartcontracts <kelvinfichter@gmail.com>
Co-authored-by: default avatarGeorgios Konstantopoulos <me@gakonst.com>
parent f6df843b
---
'@eth-optimism/hardhat-ovm': patch
---
Ensure hardhat does not fail if no input sources provided
......@@ -161,6 +161,8 @@ subtask(
}
}
if (Object.keys(ovmInput.sources).length === 0) return {}
// Build both inputs separately.
const ovmOutput = await hre.run(TASK_COMPILE_SOLIDITY_RUN_SOLCJS, {
input: ovmInput,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment