-
Notifications
You must be signed in to change notification settings - Fork 0
feat(spl): add domain data test #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dkcumming
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me, I assume you are still going or it wouldn't be a draft and it is missing cheatcode_is_*. But looks good so far
| // Compare Rent from Sysvar::get vs account; fallback if not a real rent sysvar | ||
| let sysrent = solana_rent::Rent::get().unwrap(); | ||
| let min_a = sysrent.minimum_balance(10); | ||
| let prent = solana_rent::Rent::from_account_info(rent).unwrap_or(sysrent); | ||
| let min_b = prent.minimum_balance(10); | ||
| assert_eq!(min_a, min_b); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this makes sense but I actually don't know for sure tbh. Maybe this would be a good thing to ask Febo actually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I checked and recall that it checks that the public key matches so this is fair
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Co-authored-by: Jost Berthold <jost.berthold@gmail.com>
Co-authored-by: Jost Berthold <jost.berthold@gmail.com>
jberthold
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.