solana-labs/governance-ui

Unable to create token transfer proposal

what-name opened this issue · 1 comments

(devnet) When creating a proposal to send a token from a treasury (NFT or else), the "Propose" button stays greyed out even though I have both council and community tokens deposited.

Screenshot 2022-04-15 at 12 44 43

The function canUseGovernanceForInstruction doesn't seem to be returning the right boolean from checking if I have the required tokens or not. Changing to hardcoded return true enables the Propose button and I'm able to create and execute proposals. Link to code.

Screenshot 2022-04-15 at 12 46 22