Skip to content

Commit

Permalink
chore: remove unwraps (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasir Shariff authored Oct 6, 2023
1 parent 17d8f8d commit 052b57f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions workspaces/src/network/variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ where
.create_tla(self.clone().coerce(), id, sk)
.await?;

self.tx_callbacks.iter().for_each(|meter| {
meter(res.details.total_gas_burnt).unwrap();
});
for callback in self.tx_callbacks.iter() {
callback(res.details.total_gas_burnt)?;
}

Ok(res)
}
Expand All @@ -65,9 +65,9 @@ where
.create_tla_and_deploy(self.clone().coerce(), id, sk, wasm)
.await?;

self.tx_callbacks.iter().for_each(|meter| {
meter(res.details.total_gas_burnt).unwrap();
});
for callback in self.tx_callbacks.iter() {
callback(res.details.total_gas_burnt)?;
}

Ok(res)
}
Expand Down

0 comments on commit 052b57f

Please sign in to comment.