diff --git a/packages/storage-plus/src/indexed_map.rs b/packages/storage-plus/src/indexed_map.rs index 60c0055c5..46816b305 100644 --- a/packages/storage-plus/src/indexed_map.rs +++ b/packages/storage-plus/src/indexed_map.rs @@ -135,11 +135,12 @@ where } // short-cut for simple keys, rather than .prefix(()).range(...) -impl<'a, 'x, K, T, S> IndexedMap<'a, 'x, K, T, S> +impl<'a, K, T, S, I> IndexedMap<'a, K, T, S, I> where K: PrimaryKey<'a>, - T: Serialize + DeserializeOwned + Clone + 'x, - S: Storage + 'x, + T: Serialize + DeserializeOwned + Clone, + S: Storage, + I: IndexList, K::Prefix: EmptyPrefix, { // I would prefer not to copy code from Prefix, but no other way @@ -147,8 +148,8 @@ where pub fn range<'c>( &self, store: &'c S, - min: Bound<'_>, - max: Bound<'_>, + min: Option, + max: Option, order: cosmwasm_std::Order, ) -> Box>> + 'c> where