mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-10 04:22:05 +10:00
pass metadataPDA.publicKey directly
This commit is contained in:
@ -11,7 +11,7 @@ export class MutableFilter implements Filter {
|
||||
async execute(poolKeys: LiquidityPoolKeysV4): Promise<FilterResult> {
|
||||
try {
|
||||
const metadataPDA = getPdaMetadataKey(poolKeys.baseMint);
|
||||
const metadataAccount = await this.connection.getAccountInfo(new PublicKey(metadataPDA.publicKey.toString()));
|
||||
const metadataAccount = await this.connection.getAccountInfo(metadataPDA.publicKey);
|
||||
if (!metadataAccount?.data) {
|
||||
return { ok: false, message: 'Mutable -> Failed to fetch account data' };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user