Skip to content

Commit

Permalink
Merge branch 'task-empty-action-bug-fix' of https://github.com/CronCa…
Browse files Browse the repository at this point in the history
…ts/cw-croncat into task-empty-action-bug-fix
  • Loading branch information
d3v3us committed Dec 21, 2022
2 parents f63cd3c + a988931 commit 7981606
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 542 deletions.
2 changes: 1 addition & 1 deletion checksum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
7e1411d78e92ac4ab2dbda9208b62f0b4cfffc926cfc61de10498fe4e40b7afd cw_croncat.wasm
853004395db1861f1f337925a76e31b9f8ed5fe158b807c647240ea71876e875 cw_croncat.wasm
de2d1a0c648e41760020dd261f818da085c358240059acf85128f60eb0e05db2 cw_rules.wasm
4 changes: 1 addition & 3 deletions contracts/cw-croncat/src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@ impl<'a> CwCroncat<'a> {
val: "Interval invalid".to_string(),
});
}
if task.actions.is_empty() {
return Err(ContractError::CoreError(CoreError::InvalidAction {}));
}

let (mut amount_for_one_task, gas_amount) = task.is_valid_msg_calculate_usage(
deps.api,
&env.contract.address,
Expand Down
Loading

0 comments on commit 7981606

Please sign in to comment.