replaced uses of Transaction with VersionedTransaction
refactored addSignedTransactions to addTransactions because Versioned transaction doesnt have the verifySignatures function anymore. I am not sure why this check was strictly necessary so i just removed it instead of finding a way to workaround
refactored attachTip to addTipTx. i couldn't see why retaining the add tip ixn to existing txn was strictly necessary so i just removed it. otherwise, the function would become more complicated because signing works a little bit differently with versioned transactions. to properly support adding a tip txn to a existing transaction we would need a field for instruction and a field for signers.
From https://docs.solana.com/developing/versioned-transactions:
NOTE: After calling the transaction.sign() method, all the previous transaction signatures will be fully replaced by new signatures created from the provided in Signers.
I have not tested the examples.
I am using this branch in my bot and it seems to fix successfully #6
Transaction
withVersionedTransaction
addSignedTransactions
toaddTransactions
because Versioned transaction doesnt have theverifySignatures
function anymore. I am not sure why this check was strictly necessary so i just removed it instead of finding a way to workaroundattachTip
toaddTipTx
. i couldn't see why retaining the add tip ixn to existing txn was strictly necessary so i just removed it. otherwise, the function would become more complicated because signing works a little bit differently with versioned transactions. to properly support adding a tip txn to a existing transaction we would need a field for instruction and a field for signers. From https://docs.solana.com/developing/versioned-transactions:I have not tested the examples. I am using this branch in my bot and it seems to fix successfully #6