diff --git a/contract/src/common.rs b/contract/src/common.rs index 82ac7f7d..d01b09fd 100644 --- a/contract/src/common.rs +++ b/contract/src/common.rs @@ -126,7 +126,7 @@ pub(crate) mod tests { pub(crate) fn with_products(mut self, products: &[Product]) -> Self { for product in products { - self.contract.products.insert(product.clone().id, product.clone()); + self.contract.products.insert(product.id.clone(), product.clone()); } self