diff --git a/Cargo.lock b/Cargo.lock index a61ce9e5..6cae89c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -695,7 +695,7 @@ dependencies = [ [[package]] name = "seda-common" version = "0.0.0" -source = "git+https://github.com/sedaprotocol/seda-common-rs.git?branch=main#76450428c46dd7022b8478d45d28e312d93c26cc" +source = "git+https://github.com/sedaprotocol/seda-common-rs.git?branch=main#522d42360eae72b5bda9bee6e5bdf9e0305d1380" dependencies = [ "cosmwasm-schema", "cosmwasm-std", diff --git a/contract/src/msgs/data_requests/state.rs b/contract/src/msgs/data_requests/state.rs index 70bd8821..ddff0cc8 100644 --- a/contract/src/msgs/data_requests/state.rs +++ b/contract/src/msgs/data_requests/state.rs @@ -76,7 +76,7 @@ pub fn commit(store: &mut dyn Storage, dr_id: &Hash, dr: &DataRequest) -> StdRes pub fn requests_by_status( store: &dyn Storage, status: &DataRequestStatus, - offset: u64, + offset: u32, limit: u32, ) -> StdResult> { let hashes = DATA_REQUESTS_BY_STATUS.may_load(store, status)?.unwrap_or_default(); diff --git a/contract/src/msgs/data_requests/test_helpers.rs b/contract/src/msgs/data_requests/test_helpers.rs index 45a85c45..45e4a161 100644 --- a/contract/src/msgs/data_requests/test_helpers.rs +++ b/contract/src/msgs/data_requests/test_helpers.rs @@ -236,7 +236,7 @@ impl TestInfo { pub fn get_data_requests_by_status( &self, status: DataRequestStatus, - offset: u64, + offset: u32, limit: u32, ) -> HashMap { self.query(query::QueryMsg::GetDataRequestsByStatus { status, offset, limit })