Skip to content

Commit

Permalink
fix: unsafe unwrap (#1423)
Browse files Browse the repository at this point in the history
* fix: unsafe unwrap

* fix: add comment
  • Loading branch information
hugocaillard authored Apr 16, 2024
1 parent f5ce5e1 commit 7a83595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/stacks-network/src/chains_coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ pub async fn publish_stacking_orders(
let pox_version = pox_contract_id
.rsplit('-')
.next()
.and_then(|version| version.parse::<u32>().ok())
.unwrap();
.and_then(|version| version.parse().ok())
.unwrap_or(1); // pox 1 contract is `pox.clar`

let default_signing_keys = [
StacksPrivateKey::from_hex(
Expand Down

0 comments on commit 7a83595

Please sign in to comment.