CI rehearsal only (do not merge) - #24
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.
|
| async fn test_confidential_mint_feeds_set_token_account() { | ||
| use bytemuck::bytes_of; | ||
| use solana_zk_sdk::encryption::elgamal::ElGamalKeypair; | ||
| use solana_zk_sdk_pod::encryption::elgamal::PodElGamalPubkey; |
There was a problem hiding this comment.
Missing instruction-level coverage The new test creates a mint with
set_mint, then verifies it through set_token_account and get_confidential_balance. Those paths write and read account data directly, so the test does not establish that a Token-2022 confidential-transfer instruction accepts the generated mint or uses its configured auditor. An instruction-level test would catch compatibility problems that this round-trip cannot; the existing instruction-level test creates its mint through Token-2022 instructions instead.
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.