Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v3us committed Dec 21, 2022
1 parent b47d015 commit e455468
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion checksum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
77a31473ff91b6c28639e98d502882a5154b1fdc05b011f5448fca33542bea49 cw_croncat.wasm
2768416d7e7b7937dbe8e1b8f77d22141aaee5e1e0928d3de02e015a821bbee2 cw_croncat.wasm
348ce203ce7a18c2e28f001139c1f7a215f7a569c735825dc819dc79692aaffb cw_rules.wasm
7 changes: 0 additions & 7 deletions contracts/cw-croncat/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,6 @@ impl<'a> CwCroncat<'a> {
Response::new()
};

println!(
"{:?} {:?} {:?} {:?}",
task.interval,
queue_item.failure.is_some(),
task.verify_enough_balances(false).is_err(),
next_id
);
// if non-recurring, exit
if task.interval == Interval::Once
|| (task.stop_on_fail && queue_item.failure.is_some())
Expand Down
4 changes: 0 additions & 4 deletions contracts/cw-croncat/src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,6 @@ impl<'a> CwCroncat<'a> {
.add_attribute("slot_id", next_id.to_string())
.add_attribute("slot_kind", format!("{:?}", slot_kind))
.add_attribute("task_hash", hash)
.add_attribute(
"is_block_boundary",
boundary.is_block_boundary.unwrap_or_default().to_string(),
)
.add_attribute("with_queries", with_queries.to_string()))
}

Expand Down
12 changes: 0 additions & 12 deletions contracts/cw-croncat/src/tests/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,6 @@ fn query_get_tasks_pagination() {
let expected_amnt: usize = (tasks_amnt - from_index).try_into().unwrap();
assert_eq!(part_of_tasks.len(), expected_amnt);

// println!(
// "half_tasks: {:?}\n hash_vec:{:?}",
// part_of_tasks
// .iter()
// .map(|t| t.task_hash.clone())
// .collect::<Vec<String>>(),
// all_tasks
// .iter()
// .map(|t| t.task_hash.clone())
// .collect::<Vec<String>>(),
// );

// Check it's in right order
for i in 0..expected_amnt {
assert_eq!(
Expand Down

0 comments on commit e455468

Please sign in to comment.