Since 0.8.20, the default EVM target is shanghai, which includes the push0 oppcode. When releasing the package, with artefacts that the upgrades plugin will rely on, we should not target such a recent EVM version, as the produced bytecode will not be supported by many chains.
In hardhat.config.json we should add a target/compilerTarget flag, that by default would be shanghai. When doing the release process, that envvar should be set to paris
Following https://github.com/OpenZeppelin/openzeppelin-contracts/issues/4489#issuecomment-1662305827
Since 0.8.20, the default EVM target is shanghai, which includes the
push0
oppcode. When releasing the package, with artefacts that the upgrades plugin will rely on, we should not target such a recent EVM version, as the produced bytecode will not be supported by many chains.In
hardhat.config.json
we should add atarget
/compilerTarget
flag, that by default would beshanghai
. When doing the release process, that envvar should be set toparis