Function ensure_create2_deployer
pub fn ensure_create2_deployer<DB>(
chain_spec: Arc<OpChainSpec>,
timestamp: u64,
db: &mut State<DB>,
) -> Result<(), <DB as Database>::Error>where
DB: Database,
Available on crate feature
optimism
only.Expand description
The Canyon hardfork issues an irregular state transition that force-deploys the create2 deployer contract. This is done by directly setting the code of the create2 deployer account prior to executing any transactions on the timestamp activation of the fork.