Virus-Axel / godot-solana-sdk

Build Solana games with godot. This GDExtension will enable godot to make on-chain and Solana integrated games.
MIT License
32 stars 10 forks source link

Issue: game crashes if i do set_payer() on deserialized transaction #278

Open ZenRepublic opened 1 week ago

ZenRepublic commented 1 week ago

Description

creating transaction from serialized form: var transaction:Transaction = Transaction.new_from_bytes(transaction_bytes)

and then setting a payer: transaction.set_payer(wallet)

this crashes the game.

if i instead do transaction.set_signers([wallet]) it's not crashing

Suggested Improvements

No response

Extra Information

No response

ZenRepublic commented 1 week ago

ok so there is some sort of difference with transactions created regularly and those created with new_from_bytes()

for regular transactions, it crashes if i write transaction.set_signers() and for new_from_bytes ones, it crashes if i do transaction.set_payer()