Open CedarMist opened 4 months ago
https://github.com/rust-ethereum/evm/pull/278 adds support for EIP-1153
https://github.com/rust-ethereum/evm/pull/279 adds support for EIP-5656
Awesome!
Thank so much @RomarQ for taking the time to implement the two EIPs.
We're also considering moving from this package to https://github.com/bluealloy/revm - but it's important that both have support for these new opcodes.
As of Solidity 0.8.25 on 14th March 2024 the default Ethereum hardfork is Dencun, meaning these new opcodes are emitted when the optimizer deems suitable.
MCOPY
opcode to the code base. Currently, copying memory requires developers to use two opcodes (MSTORE
andMLOAD
) and costs at least 96 gas. WithMCOPY
, it only costs around 26 gas. This improvement makes smart contracts more efficient with zero trade-offs.TLOAD
andTSTORE
opcodes to enable transient storage or medium-term memory for communication within complex transactions. This means the memory will be accessible to all function calls within the transaction and will be cleared once it’s completed.This means projects using this EVM implementation will revert due to invalid opcodes with many contracts that are compiled with the 0.8.25 release of Solidity and it's something that should be supported with high priority.