fn sign_delegation(
ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
private_key: Uint<256, 4>,
implementation: Address,
nonce: Option<u64>,
attach: bool,
) -> Result<Vec<u8>>
Expand description
Helper function to sign and attach (if needed) an EIP-7702 delegation. Uses the provided nonce, otherwise retrieves and increments the nonce of the EOA.