pub async fn simulate_cu(
rpc: &mut LightProgramTest,
payer: &Keypair,
instruction: &Instruction,
) -> u64Expand description
Simulate a transaction and return the compute units consumed.
This is a test utility function for measuring transaction costs.