fix contract creation on failed deployment

This commit is contained in:
Noor 2025-03-07 14:12:59 +00:00
parent a46f6ef800
commit a90a6c0b79
Signed by: noormohammedb
GPG Key ID: E424C39E19EFD7DF

@ -892,7 +892,7 @@ impl BrainData {
self.del_app_daemon_tx(&req.node_pubkey);
self.send_new_container_resp(NewAppRes {
uuid: req.uuid,
status: "Failed".to_string(),
status: "failed".to_string(),
error: "Daemon is offline.".to_string(),
..Default::default()
})
@ -960,6 +960,10 @@ impl BrainData {
);
}
if new_container_resp.error != "" {
return;
}
let requested_resource = new_container_req.0.resource.clone().unwrap_or_default();
let app_contracts = AppContract {