Skip to content
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

allow to drop tx after execution #41

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add box aroud account
  • Loading branch information
fanatid committed Feb 10, 2022
commit 72c53311c39e4e983b9accaf89aeeeac6b2c938c
4 changes: 2 additions & 2 deletions programs/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,14 @@ pub struct ExecuteTransaction<'info> {

#[derive(Accounts)]
pub struct DropTransaction<'info> {
multisig: Account<'info, Multisig>,
multisig: Box<Account<'info, Multisig>>,
#[account(
mut,
has_one = multisig,
constraint = transaction.did_execute,
constraint = transaction.successor == Some(*successor.key),
)]
transaction: Account<'info, Transaction>,
transaction: Box<Account<'info, Transaction>>,
#[account(mut)]
successor: AccountInfo<'info>,
}
Expand Down