Skip to content

Commit

Permalink
F11 fix (#1312)
Browse files Browse the repository at this point in the history
Co-authored-by: noot <elizabethjbinks@gmail.com>
  • Loading branch information
laudiacay and noot authored Dec 9, 2021
1 parent efc2d7f commit b83b190
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vm/actor/src/builtin/miner/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,10 +1154,9 @@ impl State {
make_map_with_root_and_bitwidth(&self.pre_committed_sectors, store, HAMT_BIT_WIDTH)?;
for sector_no in sector_nos.iter() {
if sector_no as u64 > MAX_SECTOR_NUMBER {
return Err(Box::new(actor_error!(
ErrIllegalArgument,
"sector number greater than maximum"
)));
return Err(
actor_error!(ErrIllegalArgument, "sector number greater than maximum").into(),
);
}

let info: &SectorPreCommitOnChainInfo =
Expand Down

0 comments on commit b83b190

Please sign in to comment.