• Type guard to check if a value is an ExecutionResultV7.

    Parameters

    • data: unknown

      The value to check

    Returns data is {
        accountValidationData: bigint;
        paid: bigint;
        paymasterValidationData: bigint;
        preOpGas: bigint;
        targetResult: `0x${string}`;
        targetSuccess: boolean;
    }

    True if the value matches the ExecutionResultV7 structure

    if (isExecutionResultV7(result)) {
    console.log(result.preOpGas);
    console.log(result.targetSuccess);
    }