Skip to content

Commit

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

Signed-off-by: Vladimir Pesterev <pesterev@pm.me>
  • Loading branch information
pesterev committed Jun 20, 2022
1 parent 57b6c0b commit 2794ef9
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
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

0 comments on commit 2794ef9

Please sign in to comment.