Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Jan 8, 2025
1 parent 5aad678 commit d7fc054
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions programs/drift/src/validation/sig_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,11 @@ pub fn verify_ed25519_msg(
&msg[start..end].try_into().unwrap()
};

let payload = hex::decode(payload).map_err(|_| SignatureVerificationError::InvalidMessageHex)?;
let payload =
hex::decode(payload).map_err(|_| SignatureVerificationError::InvalidMessageHex)?;
Ok(VerifiedMessage {
swift_order_params_message: SwiftOrderParamsMessage::deserialize(&mut payload.as_slice()).unwrap(),
swift_order_params_message: SwiftOrderParamsMessage::deserialize(&mut payload.as_slice())
.unwrap(),
signature: *signature,
})
}
Expand Down

0 comments on commit d7fc054

Please sign in to comment.