Skip to content

Commit

Permalink
Merge branch 'main' into get-input-from-traces
Browse files Browse the repository at this point in the history
  • Loading branch information
sunce86 authored Jan 15, 2025
2 parents 6754ef9 + 01f35f8 commit 15cca31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/nitpicks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Reminder: Please consider backward compatibility when modifying the API specification.
If breaking changes are unavoidable, ensure:
- You explicitly pointed out breaking changes.
- You communicate the changes to affected teams.
- You communicate the changes to affected teams (at least Frontend team and SAFE team).
- You provide proper versioning and migration mechanisms.
pathFilter:
- "**/openapi.yml"
8 changes: 4 additions & 4 deletions crates/e2e/tests/e2e/place_order_with_quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async fn place_order_with_quote(web3: Web3) {
let quote_response = services.submit_quote(&quote_request).await.unwrap();
tracing::debug!(?quote_response);
assert!(quote_response.id.is_some());
assert!(quote_response.verified);

let quote_metadata =
crate::database::quote_metadata(services.db(), quote_response.id.unwrap()).await;
Expand Down Expand Up @@ -99,9 +100,8 @@ async fn place_order_with_quote(web3: Web3) {
&database::byte_array::ByteArray(order_uid.0),
)
.await
.unwrap()
.unwrap();
assert!(order_quote.is_some());
// compare quote metadata and order quote metadata
let order_quote_metadata = order_quote.unwrap().metadata;
assert_eq!(quote_metadata.unwrap().0, order_quote_metadata);
assert_eq!(quote_response.verified, order_quote.verified);
assert_eq!(quote_metadata.unwrap().0, order_quote.metadata);
}
4 changes: 1 addition & 3 deletions crates/shared/src/order_quoting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ impl TryFrom<QuoteRow> for QuoteData {
expiration: row.expiration_timestamp,
quote_kind: row.quote_kind,
solver: H160(row.solver.0),
// Even if the quote was verified at the time of creation
// it might no longer be accurate.
verified: false,
verified: row.verified,
metadata: row.metadata.try_into()?,
})
}
Expand Down

0 comments on commit 15cca31

Please sign in to comment.