Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
| token_program_searcher: spl_token::id(), | ||
| fee_token, | ||
| referral_fee_bps, | ||
| user_mint_user_balance: 0, |
There was a problem hiding this comment.
how were all these passing previously?
There was a problem hiding this comment.
the user_mint_user_balance wasn't used for anything in verification nor in the sdks before this PR
| pubkey::Pubkey, | ||
| rent::Rent, | ||
| }, | ||
| spl_token_2022::state::Account as TokenAccount, |
There was a problem hiding this comment.
this seems fine since you're using the token 2022 token account (which is greater than 165 bytes, i think). i don't think there's any real edge cases, this seems to be overcompensating for the user in the case that they have enough SOL to pay for legacy token accounts but not for token 2022 token accounts. but probably worth a comment just noting this down for devX reasons
There was a problem hiding this comment.
it's quite tricky because TokenAccount::LEN is actually 165, so this code might not work for token22, won't fix now but added a todo
No description provided.