-
Notifications
You must be signed in to change notification settings - Fork 0
fix(spl): modify tests for process_withdraw_excess_lamports with InvalidInstruction
#146
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
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 don't understand this, if we change the post-condition from what there is for p-token we are going to break our definition of equivalence. What is the goal with this change? EDIT: Sorry I wasn't fully paying attention when I reviewed this, I see what you mean, let me take a closer look though.
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.
Really I think this can be reduced to one harness that fails in all cases right?
fn test_process_withdraw_excess_lamports_multisig(
program_id: &Pubkey,
accounts: &[AccountInfo; 3],
instruction_data: &[u8; 1],
) -> ProgramResult {
//-Process Instruction-----------------------------------------------------
let result = Processor::process(program_id, accounts, instruction_data_with_discriminator);
assert_eq!(result, Err(TokenError::InvalidInstruction.into()));
result
}
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.
Awesome, the performance gain on these proofs with this change should be massive! ;)
…alidInstruction` (#146) `process_withdraw_excess_lamports` is missed in spl-token and implemented in token-2022.
process_withdraw_excess_lamportsis missed in spl-token and implemented in token-2022.