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
For now we ended up in adding the token Gate at the end and define the public key, but I am not sure if this is correct.
If we only define the tokenGate in the index.tsx and not in the candy-machine config in suger, we get another error: "Public Key mismatch"
const enabledGuardsKeys =
guards && Object.keys(guards).filter((guardKey) => guards[guardKey])
let mintArgs: Partial<DefaultGuardSetMintArgs> = {}
const tokenMintPublicKeyString = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
const tokenMint = publicKey(tokenMintPublicKeyString);
// If there are enabled guards, set the mintArgs
if (enabledGuardsKeys.length) {
// Map enabled guards and set mintArgs automatically based on the fields defined in each guard
enabledGuardsKeys.forEach((guardKey) => {
const guardObject = unwrapOption(candyGuard.guards[guardKey]);
if (!guardObject) return null;
mintArgs = { ...mintArgs, [guardKey]: some(guardObject) };
});
}
mintArgs.tokenGate = some({ mint: tokenMint });
The text was updated successfully, but these errors were encountered:
As we try to add a TokenGate to it we get a "Account does not have correct owner" warning from the UI
creating the config.json guard in sugar seems to disconnect the guard from the candy-machine:
"guards": {
"default": {
}
For now we ended up in adding the token Gate at the end and define the public key, but I am not sure if this is correct.
If we only define the tokenGate in the index.tsx and not in the candy-machine config in suger, we get another error: "Public Key mismatch"
The text was updated successfully, but these errors were encountered: