Skip to content

Commit

Permalink
Remove second signers from adding minter and guardian
Browse files Browse the repository at this point in the history
  • Loading branch information
eth-r committed Jul 31, 2023
1 parent 1892686 commit 136d04e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pub struct AddGuardian<'info> {
)]
pub tbtc: Account<'info, Tbtc>,
pub authority: Signer<'info>,
pub guardian: Signer<'info>,
/// CHECK: the guardian does not need to sign
pub guardian: UncheckedAccount<'info>,
#[account(mut)]
pub payer: Signer<'info>,
#[account(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pub struct AddMinter<'info> {
)]
pub tbtc: Account<'info, Tbtc>,
pub authority: Signer<'info>,
pub minter: Signer<'info>,
/// CHECK: the minter does not need to sign
pub minter: UncheckedAccount<'info>,
#[account(mut)]
pub payer: Signer<'info>,
#[account(
Expand Down
4 changes: 2 additions & 2 deletions cross-chain/solana/tests/01__tbtc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function addMinter(
payer: payer.publicKey,
minterInfo: minterInfoPDA,
})
.signers(maybeAuthorityAnd(authority, [minter]))
.signers(maybeAuthorityAnd(authority, []))
.rpc();
return minterInfoPDA;
}
Expand Down Expand Up @@ -189,7 +189,7 @@ async function addGuardian(
payer: payer.publicKey,
guardianInfo: guardianInfoPDA,
})
.signers(maybeAuthorityAnd(authority, [guardian]))
.signers(maybeAuthorityAnd(authority, []))
.rpc();
return guardianInfoPDA;
}
Expand Down

0 comments on commit 136d04e

Please sign in to comment.