Since hardhat starknet-compile is meant to be used for single-file compilation we could simply append --single-file internally. This, however, would not work with Cairo versions <= 2.0.0. This could be handled by checking the compiler version provided, but might not be necessary. Using the dockerized compiler should not be a problem, only the one specified with cairo1BinDir.
Introduced in: https://github.com/starkware-libs/cairo/pull/3533 Used like: https://github.com/starkware-libs/cairo/blob/main/README.md#compiling-starknet-contracts
Since
hardhat starknet-compile
is meant to be used for single-file compilation we could simply append--single-file
internally. This, however, would not work with Cairo versions <= 2.0.0. This could be handled by checking the compiler version provided, but might not be necessary. Using the dockerized compiler should not be a problem, only the one specified withcairo1BinDir
.