Skip to content

Commit

Permalink
fix: convert correctly from uSTX to STX when applying a deployment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
erickcestari authored Sep 23, 2024
1 parent 208793f commit dfe4098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/clarinet-cli/src/deployments/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Display for DeploymentSynthesis {
let base: u64 = 10;
let int_part = self.total_cost / base.pow(6);
let frac_part = self.total_cost % base.pow(6);
let formatted_total_cost = format!("{}.{:08}", int_part, frac_part);
let formatted_total_cost = format!("{}.{:06}", int_part, frac_part);
write!(
f,
"{}\n\n{}\n{}",
Expand Down

0 comments on commit dfe4098

Please sign in to comment.