foundry_cheatcodes::script

Function broadcast_key

Source
fn broadcast_key(
    ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
    private_key: &U256,
    single_call: bool,
) -> Result
Expand description

Sets up broadcasting from a script with the sender derived from private_key. Adds this private key to state’s wallets vector to later be used for signing if broadcast is successful.