dapp-scaffold icon indicating copy to clipboard operation
dapp-scaffold copied to clipboard

"Expired transaction" - ERROR

Open mrbotnft opened this issue 2 years ago • 2 comments

We are getting "expired transaction error" in phatom while trying to send any transaction in the devnet or testnet. Signing a message works fine. It pop ups the error without any possibility to click the approve button or anything. This doesn't happen in the mainnet weirdly, just the other 2 nets.

mrbotnft avatar Oct 03 '22 19:10 mrbotnft

Found the bug:


const {
        context: { slot: minContextSlot },
        value: { blockhash, lastValidBlockHeight },
      } = await connection.getLatestBlockhashAndContext();

      signature = await sendTransaction(transaction, connection, {
        minContextSlot,
      });

      await connection.confirmTransaction({
        blockhash,
        lastValidBlockHeight,
        signature,
      });

You are missing this in the SendTransaction.tsx. Check @solana-wallet-adapter for refence

mrbotnft avatar Oct 03 '22 19:10 mrbotnft

https://github.com/solana-labs/dapp-scaffold/pull/258

mrbotnft avatar Oct 03 '22 19:10 mrbotnft

issue should be resolved in latest. please re-request if necessary. thank you!

DonnySolana avatar Oct 25 '22 06:10 DonnySolana