Skip to content
Monpediaby Unity Nodes
OpenPull Request

Update MIP-19: Align with deferred SETCODEFROM code hash write

by mf-pdobaczCreated Nov 27, 2026monad-crypto/MIPs

ReferencesMIP-19

Update to the EIP-8298 semantics proposed in ethereum/EIPs#12716:

  • Deferred write. SETCODEFROM records a pending code hash. The hash is written when the account's outermost active frame ends successfully, so an account never presents code that its running frames are not executing.
  • Own-code rule. An account holding regular code can adopt only from its own code.

MIP-19's adaptation is unchanged: the halt for delegated accounts, the k-block window, the reserve balance check and the in-flight path.

One change to how Monad's CREATE restriction applies: in the adopting transaction, the account cannot deploy contracts from its own frames until its outermost active frame ends, instead of from the first frame started after the adoption. This only adjusts behaviour Monad-specific migration tooling already handles, given the CREATE restriction on delegated accounts. Deploying through a factory, or through an executor contract that calls the account again after adoption, works on both chains.

Related to the codehash-spoofing issue raised in https://ethereum-magicians.org/t/eip-8298-setcodefrom-code-reuse-instruction/28779/23.

Co-Authored-By: Claude Opus 5.5