-
Notifications
You must be signed in to change notification settings - Fork 0
29 split withdraw excess and set_authority proofs, update proof table #40
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
p-token/test-properties/tests.md
Outdated
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.
Happy to modify the PR and replace this file by a simple list of test names. Keeping all results up to date seems not very practical anyway.
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 like the sound of that
let mut multisig_is_initialised: Result<bool, ProgramError> = Err(ProgramError::Custom(999)); | ||
if accounts[2].data_len() == Multisig::LEN { | ||
multisig_is_initialised = get_multisig(&accounts[2]).is_initialized(); | ||
} |
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.
@jberthold what do you think of this? I wanted the concrete tests to run the multisig signers case and this got it to run successfully. I think this might be preferable to the feature flag.
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.
Reverted for now
…rification/solana-token into 29-split-withdraw-excess-proof
Update proof status table (already done in github issue)
tests.md
to to a list of proofs to runSplit
withdraw_excess_lamports
proof into cases forAccount
andMint
(and prepareMultisig
)Mint
-related code inwithdraw_excess_lamports
proof for initial test (fails due to Cheat code forSysvar::<Rent>::get
#37 )Mint
case, adapt pre- and post-conditionsMultisig
case, adapt pre- and post-conditionsmultisig_is_initialised
with sentinel error value, this removes conditional compilation and allows concrete tests to pass. - Need feedback on this approachSplit
set_authority
proof into cases forAccount
andMint
Bug fix concrete tests:
Burn{Checked}
assumed owner ofAccountInfo
would be the owner ofAccount
See INVESTIGATION:AccountInfo.owner != Account.owner
#38CloseAccount
test for when accounts were the same was buggy