You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the following code, I am able to pay claim2 but not claim
async function claim(){
if (wallet){ let fanoutSdk: FanoutClient;
fanoutSdk = new FanoutClient(
connection2,
// @ts-ignore
wallet
);
const fanout = new PublicKey("2DdevS3SFCsuUBAjnhi4krz1GSvDenZfMETaHqWFWUn9")
let ix = await fanoutSdk.distributeTokenMemberInstructions(
{
fanoutMint: new PublicKey("DLbjx3D65yP7yy4eKSfMFzUgvTfKB9ApTXYunA2NUMtF"),
distributeForMint: true,
membershipMint: mintPublicKey,
fanout: fanout,
member: wallet.publicKey,
payer: wallet.publicKey
}
);
let tx2 = await fanoutSdk.sendInstructions(
ix.instructions,
[],
wallet.publicKey
);
}
}
async function claim2(){
if (wallet){ let fanoutSdk: FanoutClient;
fanoutSdk = new FanoutClient(
connection2,
// @ts-ignore
wallet
);
const fanout = new PublicKey("2DdevS3SFCsuUBAjnhi4krz1GSvDenZfMETaHqWFWUn9")
let ix = await fanoutSdk.distributeTokenMemberInstructions(
{
fanoutMint: new PublicKey("BAjRRdbhNWwc1SWWHNHGLGtqS1kDct78qz9oGqGcL6H9"),
distributeForMint: true,
membershipMint: mintPublicKey,
fanout: fanout,
member: wallet.publicKey,
payer: wallet.publicKey
in the following code, I am able to pay claim2 but not claim
async function claim(){
if (wallet){ let fanoutSdk: FanoutClient;
fanoutSdk = new FanoutClient(
connection2,
// @ts-ignore
wallet
);
const fanout = new PublicKey("2DdevS3SFCsuUBAjnhi4krz1GSvDenZfMETaHqWFWUn9")
let ix = await fanoutSdk.distributeTokenMemberInstructions(
{
fanoutMint: new PublicKey("DLbjx3D65yP7yy4eKSfMFzUgvTfKB9ApTXYunA2NUMtF"),
distributeForMint: true,
membershipMint: mintPublicKey,
fanout: fanout,
member: wallet.publicKey,
payer: wallet.publicKey
);
let tx2 = await fanoutSdk.sendInstructions(
ix.instructions,
[],
wallet.publicKey
);
}
}
async function claim2(){
if (wallet){ let fanoutSdk: FanoutClient;
fanoutSdk = new FanoutClient(
connection2,
// @ts-ignore
wallet
);
const fanout = new PublicKey("2DdevS3SFCsuUBAjnhi4krz1GSvDenZfMETaHqWFWUn9")
let ix = await fanoutSdk.distributeTokenMemberInstructions(
{
fanoutMint: new PublicKey("BAjRRdbhNWwc1SWWHNHGLGtqS1kDct78qz9oGqGcL6H9"),
distributeForMint: true,
membershipMint: mintPublicKey,
fanout: fanout,
member: wallet.publicKey,
payer: wallet.publicKey
);
let tx2 = await fanoutSdk.sendInstructions(
ix.instructions,
[],
wallet.publicKey
);
}
}
The text was updated successfully, but these errors were encountered: