Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime-sdk/evm: Support for EIP-5656 and EIP-1153 in Ethereum cancun EVM #1671

Open
CedarMist opened this issue Mar 27, 2024 · 2 comments
Open
Labels
c:deps Category: external dependencies c:runtime-sdk Category: Runtime SDK enhancement New feature or request m:evm Module: evm

Comments

@CedarMist
Copy link
Member

CedarMist commented Mar 27, 2024

As of Solidity 0.8.25 the default EVM version is dencun which introduces two EIPs

  • EIP-5656 proposal adds MCOPY opcode to the code base. Currently, copying memory requires developers to use two opcodes (MSTORE and MLOAD) and costs at least 96 gas. With MCOPY, it only costs around 26 gas. This improvement makes smart contracts more efficient with zero trade-offs.
  • EIP-1153 proposal adds TLOAD and TSTORE 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.

Contracts compiled with Solidity 0.8.25 may fail to execute if they use functionality which emits these opcodes.

@CedarMist CedarMist added enhancement New feature or request c:runtime-sdk Category: Runtime SDK c:deps Category: external dependencies m:evm Module: evm labels Mar 27, 2024
@kostko
Copy link
Member

kostko commented Mar 27, 2024

This first needs upstream support, not sure if it is already there. Or we could change the backend to revm.

@CedarMist
Copy link
Member Author

Have made an upstream ticket: rust-ethereum/evm#277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:deps Category: external dependencies c:runtime-sdk Category: Runtime SDK enhancement New feature or request m:evm Module: evm
Projects
None yet
Development

No branches or pull requests

2 participants