I am trying to interact with an Anchor project on the solana mobile stack. I have gotten the example app working and have messed around with the fakewallet/fakedapp. I want to use the AnchorWallet in order to sign transactions, but it requires the signTransaction field, which is missing on mobile.
I just used the wallet: WalletContextState and wallet.provider to do this for web. I also don't exactly understand all the caching done on the example.
This is the mobile code. The web code is exactly the same, but wallet is of type Web3MobileWallet.
We need the getProvider() function so that we can make getProgram() to find the Anchor Program. This is the web function here:
signTransaction
to be available but it wasn’t)? Specifics and code samples will help here.