1

So was doing some e2e testing using ProgramTest Create where we normally use the process_transaction api to execute tx but i was looking for a function which returned a signature or logs so i could implement some custom logic with log parsing came across on a certain API

process_transaction_with_preflight_and_commitment_and_context( &mut self,
        ctx: Context,
        transaction: Transaction,
        commitment: CommitmentLevel,)

cant seem to understand where do i provide the context type from ?

1 Answer 1

1

Nvm Context is retrieved via tarpc crate

1
  • 2
    consider elaborating by adding example code for future users interested in the answer to better understand how this is a solution
    – trent.sol
    Commented Jul 18, 2022 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.