v0.3.8-pre.009-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-api/src/model/raw_inspection.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
/// Random-access page request dedicated to bounded interactive RAW inspection.
|
||||
///
|
||||
@@ -104,10 +104,10 @@ impl RawTransactionObservationInspectionQuery {
|
||||
direction: crate::RawSortDirection,
|
||||
page: crate::RawInspectionPageRequest,
|
||||
) -> crate::Result<Self> {
|
||||
if let std::option::Option::Some(reference) = transaction.as_ref() {
|
||||
if reference.network() != &network {
|
||||
return std::result::Result::Err(raw_model_error("transaction"));
|
||||
}
|
||||
if let std::option::Option::Some(reference) = transaction.as_ref()
|
||||
&& reference.network() != &network
|
||||
{
|
||||
return std::result::Result::Err(raw_model_error("transaction"));
|
||||
}
|
||||
return std::result::Result::Ok(Self { direction, network, page, transaction });
|
||||
}
|
||||
@@ -154,10 +154,10 @@ impl RawAccountObservationInspectionQuery {
|
||||
direction: crate::RawSortDirection,
|
||||
page: crate::RawInspectionPageRequest,
|
||||
) -> crate::Result<Self> {
|
||||
if let std::option::Option::Some(reference) = account.as_ref() {
|
||||
if reference.network() != &network {
|
||||
return std::result::Result::Err(raw_model_error("account"));
|
||||
}
|
||||
if let std::option::Option::Some(reference) = account.as_ref()
|
||||
&& reference.network() != &network
|
||||
{
|
||||
return std::result::Result::Err(raw_model_error("account"));
|
||||
}
|
||||
return std::result::Result::Ok(Self { account, direction, network, page });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user