I'm trying to submit a transaction on my app, which works with different wallets such as Solflare, but if I try to use Phantom I always get the error message:
You waited too long to approve the transaction and it expired. This transaction will revert if submitted.
I have no idea why this happens and it never happens with a different wallet. I'm not waiting at all, this message appears after about 1 second after trying to submit a transaction.
I am using the newest versions of
@solana-wallet-adapter packages as of this date. My transaction submitting code is the same as in the example here: https://github.com/solana-labs/wallet-adapter/blob/master/APP.md.