Skip to content

Commit

Permalink
Split up sign_seeds to be less ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed Jul 30, 2024
1 parent ae5f91f commit 4bd12ba
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ pub fn send_wanted_tokens_to_maker(ctx: &Context<TakeOffer>) -> Result<()> {
}

pub fn withdraw_and_close_vault(ctx: Context<TakeOffer>) -> Result<()> {
let signer_seeds: [&[&[u8]]; 1] = [&[
let seeds = &[
b"offer",
ctx.accounts.maker.to_account_info().key.as_ref(),
&ctx.accounts.offer.id.to_le_bytes()[..],
&[ctx.accounts.offer.bump],
]];
];
let signer_seeds: [&[&[u8]]; 1] = [&seeds[..]];

let accounts = TransferChecked {
from: ctx.accounts.vault.to_account_info(),
Expand Down

0 comments on commit 4bd12ba

Please sign in to comment.