foundry_cheatcodes::crypto

Function create_wallet

Source
fn create_wallet(
    private_key: &U256,
    label: Option<&str>,
    state: &mut Cheatcodes,
) -> Result
Expand description

Using a given private key, return its public ETH address, its public key affine x and y coordinates, and its private key (see the ‘Wallet’ struct)

If ‘label’ is set to ‘Some()’, assign that label to the associated ETH address in state