Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Nov 29, 2024
1 parent 2db9438 commit 539a39d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions programs/drift/src/instructions/keeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ use crate::state::user_map::{load_user_map, load_user_maps, UserMap, UserStatsMa
use crate::validation::sig_verification::{extract_ed25519_ix_signature, verify_ed25519_msg};
use crate::validation::user::{validate_user_deletion, validate_user_is_idle};
use crate::{
controller, digest_struct, digest_struct_hex, load, math, print_error, safe_decrement, OracleSource,
GOV_SPOT_MARKET_INDEX, MARGIN_PRECISION,
controller, digest_struct, digest_struct_hex, load, math, print_error, safe_decrement,
OracleSource, GOV_SPOT_MARKET_INDEX, MARGIN_PRECISION,
};
use crate::{load_mut, QUOTE_PRECISION_U64};
use crate::{validate, QUOTE_PRECISION_I128};
Expand Down
10 changes: 6 additions & 4 deletions sdk/src/driftClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5788,16 +5788,18 @@ export class DriftClient {
): Buffer {
const takerOrderParamsMessage =
this.encodeSwiftOrderParamsMessage(orderParamsMessage);
return this.signMessage(new TextEncoder().encode(digest(takerOrderParamsMessage).toString('hex')));
return this.signMessage(
new TextEncoder().encode(digest(takerOrderParamsMessage).toString('hex'))
);
}

public encodeSwiftOrderParamsMessage(
orderParamsMessage: SwiftOrderParamsMessage
): Buffer {
return this.program.coder.types.encode(
'SwiftOrderParamsMessage',
orderParamsMessage
);
'SwiftOrderParamsMessage',
orderParamsMessage
);
}

public decodeSwiftOrderParamsMessage(
Expand Down

0 comments on commit 539a39d

Please sign in to comment.