This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'toBase58') #2360
Labels
question
Add this to close an issue with instructions on how to repost as a question on Stack Exchange
Overview
Steps to reproduce
const publicKey = traderKeypair.publicKey;
const address = publicKey.toBase58();
console.log('Solana Address:', address);
const message = new web3.TransactionMessage({
payerKey: traderKeypair.publicKey,
instructions: [setupNewMakerIxs],
recentBlockhash,
}).compileToV0Message();
Description of bug
publicKey.toBase58() can get value ,but TransactionMessage first parameter payerKey:Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'toBase58') ,Findings bug is "@solana/web3.js/lib/index.cjs.js:626:30) " ,When calling compileToV0Message
pubkey firtst can get value ,second pubkey is null
The text was updated successfully, but these errors were encountered: