[x] Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
[x] Are you running the latest SDK version?
[x] Are you reporting to the correct repository (magic-sdk)?
🐛 Description
When following the Solana blockchain integration docs on react-native, I seem to have stumbled upon a nasty bug.
upon calling signTransaction with a valid magic transaction and config (tested my setup in a Vuejs environment perfectly fine)
The function call to signTransaction seems to hang and only gets resolved upon multiple repeated calls to signTransaction again.
signTransaction to only need to be called once correctly.
😮 Actual behavior
There is also a warning that shows up "No instructions provided." However, this warning also shows up on my vuejs environment where the signTransaction function works perfectly fine.
I wasn't following the docs properly. I needed to wrap the m.Relayer component in a SafeAreaProvider from react-native-safe-area-context in the root of my application.
✅ Prerequisites
magic-sdk
)?🐛 Description
When following the Solana blockchain integration docs on react-native, I seem to have stumbled upon a nasty bug.
upon calling
signTransaction
with a valid magic transaction and config (tested my setup in a Vuejs environment perfectly fine) The function call tosignTransaction
seems to hang and only gets resolved upon multiple repeated calls tosignTransaction
again.🧩 Steps to Reproduce
const signedTransaction = await magic.solana.signTransaction(transactionMagic, serializeConfig)
signTransaction
again🤔 Expected behavior
signTransaction to only need to be called once correctly.
😮 Actual behavior
There is also a warning that shows up "No instructions provided." However, this warning also shows up on my vuejs environment where the
signTransaction
function works perfectly fine.💻 Code Sample
where
connection
is a web3.jsConnection
pubKey
is a web3.jsPublicKey
balance
is anumber
🌎 Environment