Skip to content

Commit

Permalink
refactor: change offset to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocao committed Jun 12, 2024
1 parent a4266a2 commit 7ad103e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contract/src/msgs/data_requests/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<HashMap<String, DataRequest>> {
let hashes = DATA_REQUESTS_BY_STATUS.may_load(store, status)?.unwrap_or_default();
Expand Down
2 changes: 1 addition & 1 deletion contract/src/msgs/data_requests/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl TestInfo {
pub fn get_data_requests_by_status(
&self,
status: DataRequestStatus,
offset: u64,
offset: u32,
limit: u32,
) -> HashMap<String, DataRequest> {
self.query(query::QueryMsg::GetDataRequestsByStatus { status, offset, limit })
Expand Down

0 comments on commit 7ad103e

Please sign in to comment.