@agsola
To check opCode compatibility programatically I use Viem's (@wevm) estimateGas with no "to" and proper "data".
However, not only the opCode may be sufficient on "data". To check TSTORE/TLOAD (cancun) compatibility a proper assembly code must be used:
0x5f5c (push0 + tload)