I can see in the documentation that Token-2022's transfer fees and confidential transfers are supported (or intended to be supported) when used together. However, when I attempt to mint a token with both, like this:
spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token --enable-confidential-transfers auto --transfer-fee 50 0
I receive the error message Program log: Mint or account is initialized to an invalid combination of extensions
.
Looking at the source code for program-2022, I see that it checks to ensure that the ConfidentialTransferFeeConfig
extension is loaded when confidential transfers and transfer fees are used together, but I don't see in the documentation or the CLI code how I could set the config expected at mint.
Am I overlooking something, or is this still incomplete?