metaplex-foundation / SolanaKT

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

Transaction.from() function seems to be different between this lib and @solana/web3.js #128

Open IssaMansour opened 1 year ago

IssaMansour commented 1 year ago

Hello,

While trying to use Transaction.from(buffer) function of this lib in an Android app, I got a crash: Fatal Exception: java.lang.IndexOutOfBoundsException: toIndex (64) is greater than size (52).

On the other hand, I tried to do the same on a cloud server, with @solana/web3.js who also provide a Transaction.from() function, and everything works well. I got a response looking like this:

Screen Shot 2023-04-30 at 5 28 12 PM

I was wondering if someone has any idea. Do we need do something different in Android?

Thanks!