Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Mar 5, 2025
1 parent aec1f18 commit f8ef179
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions crates/orderbook/src/database/orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ mod tests {
},
model::{
interaction::InteractionData,
order::{Order, OrderData, OrderMetadata, OrderQuote, OrderStatus, OrderUid},
order::{Order, OrderData, OrderMetadata, OrderStatus, OrderUid},
signature::{Signature, SigningScheme},
},
primitive_types::U256,
Expand Down Expand Up @@ -1107,6 +1107,14 @@ mod tests {
id: Some(5),
sell_amount: U256::from(1),
buy_amount: U256::from(2),
data: QuoteData {
fee_parameters: FeeParameters {
sell_token_price: 2.5,
gas_amount: 0.01,
gas_price: 0.003,
},
..Default::default()
},
..Default::default()
};

Expand All @@ -1118,11 +1126,7 @@ mod tests {
},
metadata: OrderMetadata {
uid,
quote: Some(OrderQuote {
sell_amount: quote.sell_amount,
buy_amount: quote.buy_amount,
..Default::default()
}),
quote: Some(quote.try_to_model_order_quote().unwrap()),
..Default::default()
},
interactions: Interactions {
Expand Down

0 comments on commit f8ef179

Please sign in to comment.