Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] fanout cannot pay fanout fungibles as inputs to that same fungible as output #13

Open
staccDOTsol opened this issue Mar 11, 2022 · 2 comments

Comments

@staccDOTsol
Copy link
Collaborator

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
);
}
}

@staccDOTsol
Copy link
Collaborator Author

yes, both tokens had been added after initialization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant