Skip to content

Commit

Permalink
[feature] hyperledger-iroha#2053: Add tests to the asset-related quer…
Browse files Browse the repository at this point in the history
…ies in private blockchain

Signed-off-by: Vladimir Pesterev <[email protected]>
  • Loading branch information
pesterev committed Jun 20, 2022
1 parent 07e62bd commit 0867a4b
Show file tree
Hide file tree
Showing 2 changed files with 393 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data_model/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,18 @@ pub mod asset {
}
}

impl FindAssetDefinitionKeyValueByIdAndKey {
/// Construct [`FindAssetDefinitionKeyValueByIdAndKey`].
pub fn new(
id: impl Into<EvaluatesTo<AssetDefinitionId>>,
key: impl Into<EvaluatesTo<Name>>,
) -> Self {
let id = id.into();
let key = key.into();
Self { id, key }
}
}

/// The prelude re-exports most commonly used traits, structs and macros from this crate.
pub mod prelude {
pub use super::{
Expand Down
Loading

0 comments on commit 0867a4b

Please sign in to comment.