anvil::eth::sign

Function build_typed_transaction

Source
pub fn build_typed_transaction(
    request: TypedTransactionRequest,
    signature: PrimitiveSignature,
) -> Result<TypedTransaction, BlockchainError>
Expand description

converts the request into a [TypedTransactionRequest] with the given signature

ยงErrors

This will fail if the signature contains an erroneous recovery id.