Skip to content

Commit

Permalink
Allow missing workloads in UpdateStateRequeset
Browse files Browse the repository at this point in the history
Issue-Id: #267
  • Loading branch information
christoph-hamm committed Sep 30, 2024
1 parent 73a9ca2 commit a81ad0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/objects/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl TryFrom<ank_base::State> for State {
api_version: item.api_version,
workloads: item
.workloads
.ok_or("Missing workloads map")?
.unwrap_or_default()
.workloads
.into_iter()
.map(|(k, v)| Ok((k.to_owned(), v.try_into()?)))
Expand Down

0 comments on commit a81ad0b

Please sign in to comment.