The hardhat team has enabled the option for EIP-1153 opcodes with their latest release. This makes working with Uniswap V4 a lot easier in this environment. To enable the EIP-1153 opcodes simply go to your hardhat.config.js and set enableTransientStorageto true.
You can enable transient storage on hardhat by adjusting the
We are putting together a more extensive guide with hooks included here. [In Development]