2

Signing using glow wallet is not working with @solana/wallet-adapter-react , I am getting the signature as 11111111111111111111111111111111111111.

import { useWallet } from '@solana/wallet-adapter-react';
const { signTransaction } = useWallet();

const transaction = {} // Partially signed Solana versioned transaction
signTransaction(transaction)
const transactionId = await connection.sendRawTransaction(
  transaction.serialize(),
  {skipPreflight: true},
);

This implementation works well with Phantom, but not with Glow.

1 Answer 1

5

The signTransaction API does not, and never did guarantee that the transaction will be signed in-place. You must use its return value.

const signedTransaction = signTransaction(transaction);
const transactionId = await connection.sendRawTransaction(
  signedTransaction.serialize(),
  {skipPreflight: true},
);
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.