Skip to content

Commit

Permalink
lint + fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Sep 11, 2023
1 parent adea96b commit 30a1e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/warp-controller/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ pub fn reply(mut deps: DepsMut, env: Env, msg: Reply) -> Result<Response, Contra
SubMsgResult::Err(_) => JobStatus::Failed,
};

let finished_job = JobQueueInstance::finalize(&mut deps, msg.id, new_status)?;
let finished_job = JobQueueInstance::finalize(&mut deps, env.clone(), msg.id, new_status)?;

let res_attrs = match msg.result {
SubMsgResult::Err(e) => vec![Attribute::new(
Expand Down
2 changes: 1 addition & 1 deletion contracts/warp-controller/src/execute/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pub fn execute_job(
if let Err(e) = resolution {
attrs.push(Attribute::new("job_condition_status", "invalid"));
attrs.push(Attribute::new("error", e.to_string()));
JobQueueInstance::finalize(&mut deps, env.clone(), job.id.into(), JobStatus::Failed);
JobQueueInstance::finalize(&mut deps, env.clone(), job.id.into(), JobStatus::Failed)?;
} else {
attrs.push(Attribute::new("job_condition_status", "valid"));
if !resolution? {
Expand Down

0 comments on commit 30a1e75

Please sign in to comment.