CI rehearsal only (do not merge) - #27
michael-moffett wants to merge 1 commit into
Conversation
Add a `surfnet_setMint` cheatcode that creates or patches a mint, optionally writing the Token-2022 `ConfidentialTransferMint` extension (authority, auditor ElGamal pubkey, auto-approve). Lead 3 of : builders must fork a mainnet mint today because there is no way to spin up a confidential-capable mint with a chosen auditor and decimals.
|
| owner: token_program_id, | ||
| executable: false, | ||
| rent_epoch: 0, | ||
| data: MintAccount::new(&token_program_id).pack_into_vec(), |
There was a problem hiding this comment.
Plain Token-2022 path lacks coverage
A new Token-2022 mint created without confidential is stored as an 82-byte base mint. The tests cover building a confidential extension from that layout, but not using the plain mint in a Token-2022 instruction or adding the extension in a later setMint call. A test of both steps would protect this distinct creation path from regressions.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Fork CI only. Do not merge.