Skip to content

Commit

Permalink
feat(batch_add_transaction): only creator of the batch can add txs to it
Browse files Browse the repository at this point in the history
  • Loading branch information
vovacodes committed Sep 24, 2023
1 parent 720ca8c commit c43d180
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl BatchAddTransaction<'_> {
multisig,
member,
proposal,
batch,
..
} = self;

Expand All @@ -91,6 +92,8 @@ impl BatchAddTransaction<'_> {
multisig.member_has_permission(member.key(), Permission::Initiate),
MultisigError::Unauthorized
);
// Only batch creator can add transactions to it.
require!(member.key() == batch.creator, MultisigError::Unauthorized);

// `proposal`
require!(
Expand Down

0 comments on commit c43d180

Please sign in to comment.