Skip to content

Commit

Permalink
CI: SOL formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher committed Sep 3, 2024
1 parent 417a601 commit f214eeb
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions solana-contract/programs/swap-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ pub mod swap_bridge {
&[token_authority_bump],
];

program::invoke_signed(
&swap_ix,
ctx.remaining_accounts,
&[&authority_seeds[..]],
)?;
program::invoke_signed(&swap_ix, ctx.remaining_accounts, &[&authority_seeds[..]])?;

Ok(())
}
Expand Down Expand Up @@ -224,13 +220,7 @@ impl State {

pub fn space(holding_contract: String, token_chain_id: String) -> usize {
// find space needed for state account for current config
4 + holding_contract.len()
+ 4
+ token_chain_id.len()
+ 4
+ 32
+ 32
+ 8 /* Discriminator */
4 + holding_contract.len() + 4 + token_chain_id.len() + 4 + 32 + 32 + 8 /* Discriminator */
}

pub fn get_token_authority(state_address: &Pubkey) -> (Pubkey, u8) {
Expand Down

0 comments on commit f214eeb

Please sign in to comment.