if I have an instruction that invokes another instruction that succeeds but the instruction that invoked it later fails, are there balance changes.
transfer_sol_instruction() -> ProgramResult
{
invoke(&system_instruction(from_pubkey, to_pubkey, 2000), [from_pubkey.clone(), to_pubkey.clone()]?;
// invoke was successful
Err(SomeCustomError::instruction_not_completed().into())
}
I have tried on testing on both local-validator and devnet, but it seems the transaction never gets included as there are no outputs in my solana-logs
and I do not see anything in the explorer but I do remember seeing some failed transactions on Mainnet in the explorer.