Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Sep 12, 2024
1 parent 9cc1b4c commit 3081f3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions programs/protocol-contracts-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ pub mod gateway {
Ok(())
}

pub fn deposit_and_call(ctx: Context<Deposit>, amount: u64, receiver: [u8; 20], message: Vec<u8>) -> Result<()> {
pub fn deposit_and_call(
ctx: Context<Deposit>,
amount: u64,
receiver: [u8; 20],
message: Vec<u8>,
) -> Result<()> {
require!(message.len() <= 512, Errors::MemoLengthExceeded);

let pda = &mut ctx.accounts.pda;
Expand Down Expand Up @@ -171,7 +176,6 @@ pub mod gateway {

Ok(())
}

}

fn recover_eth_address(
Expand Down

0 comments on commit 3081f3f

Please sign in to comment.