I'm working with python and have a versioned transaction where the instructions are compiled. To that versioned transaction I need to add a NON compiled instruction somehow. If the transaction is still versioned at the end or not doesn't really matter. I tried just appending the instruction to the compiled instructions but when creating a new transaction with those instructions it obviously didn't work because I had mixed compiled instructions with non compiled instructions
Versions:
solana = 0.30.1
solders = 0.17.0
from solders.instruction import CompiledInstruction, Instruction
from solders.transaction import Transaction, VersionedTransaction
from solders.system_program import TransferParams, transfer
# Getting compiled instructions
raw_transaction = VersionedTransaction.from_bytes(base64.b64decode(data))
raw_instructions = raw_transaction.message.instructions
# Creating NON compiled instructions which I'm trying to merge into the compiled ones:
tip_inst = transfer(TransferParams(from_pubkey=payer_kp.pubkey(),
to_pubkey=self.tip_account,
lamports=1000))