Skip to main content

predict_address

Function predict_address 

Source
pub fn predict_address(factory: Address, name: &str) -> Address
Expand description

The CREATE3 address factory.deploy(name, ·) lands on: the factory CREATE2-deploys the constant 16-byte proxy under keccak256(name), and that proxy CREATE-deploys the target at its nonce 1. A pure function of (factory, name) — computable offline, before anything is deployed.