metaplex-foundation / SolanaKT

This is a open source library on kotlin for Solana protocol.
MIT License
69 stars 37 forks source link

isSigner flag incorrect when compiling transaction #133

Open cdietze opened 1 year ago

cdietze commented 1 year ago

I have a transaction that references an account multiple times. The account appears as both isSigner true and false.

When the transaction is compiled the flag from the first occurrence of the account is used. This could have isSigner false.

What should happen is that isSigner is true if the account occurs at least once as signer. See this code here.

In the project this code was ported from this is solved by sorting first putting the isSigner accounts first.