Skip to content

Commit

Permalink
chore: requested change - user friendly msg for a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Levente Kiss committed Feb 12, 2024
1 parent 97d5192 commit ff0e7a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/command/stamp/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ export class Buy extends StampCommand implements LeafCommand {

this.console.log(createKeyValue('Estimated cost', `${estimatedCost.toFixed(3)} BZZ`))
this.console.log(createKeyValue('Estimated capacity', estimatedCapacity.toString()))
this.console.log(createKeyValue('Estimated effective volume', estimatedEffectiveVolume.toString()))
this.console.log(
createKeyValue(
'Estimated effective volume',
estimatedEffectiveVolume.getBytes() === 0
? "It's likely to be smaller than estimated capacity"
: estimatedEffectiveVolume.toString(),
),
)
this.console.log(createKeyValue('Estimated TTL', secondsToDhms(estimatedTtl)))
this.console.log(createKeyValue('Type', this.immutable ? 'Immutable' : 'Mutable'))

Expand Down

0 comments on commit ff0e7a8

Please sign in to comment.