Skip to content

Commit

Permalink
Merge pull request #235 from CronCats/boundary-bug-fix
Browse files Browse the repository at this point in the history
[FIX] Cron / boundary issues
  • Loading branch information
d3v3us authored Dec 22, 2022
2 parents b8b6213 + 85858a4 commit 4131dd5
Show file tree
Hide file tree
Showing 16 changed files with 288 additions and 169 deletions.
2 changes: 1 addition & 1 deletion checksum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
f02ba448d956da4cc508cafdf14dd010e3ac0d37f5d40fa3116d27093d3a6ce1 cw_croncat.wasm
fc76a0e370c9e947d6e33d018585137d566f32d1a1fb06b1b49e695e5984a57e cw_croncat.wasm
348ce203ce7a18c2e28f001139c1f7a215f7a569c735825dc819dc79692aaffb cw_rules.wasm
2 changes: 0 additions & 2 deletions contracts/cw-croncat/src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,6 @@ impl<'a> CwCroncat<'a> {
None => Ok(vec![hash]),
}
};

// Based on slot kind, put into block or cron slots
match slot_kind {
SlotType::Block => {
self.block_slots
Expand Down
2 changes: 1 addition & 1 deletion contracts/cw-croncat/src/tests/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ fn accept_nomination_agent() {
let res = add_task_exec(&mut app, &contract_addr, PARTICIPANT0);
let task_hash = res.events[1].attributes[4].clone().value;
assert_eq!(
"e078693103645f865278562ddb4301ec1f684c7ec4a0bd43907175b00ee8f562", task_hash,
"c2c2867b1833b35632ff663cd6dbaf4860b35cada0433699eaaeda90e6010297", task_hash,
"Unexpected task hash"
);

Expand Down
1 change: 1 addition & 0 deletions contracts/cw-croncat/src/tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ pub fn default_task() -> Task {
boundary: BoundaryValidated {
start: None,
end: None,
is_block_boundary: Some(true),
},
stop_on_fail: Default::default(),
total_deposit: Default::default(),
Expand Down
Loading

0 comments on commit 4131dd5

Please sign in to comment.