From ff0e7a86e7ff18deed158aeb92ae901408188bea Mon Sep 17 00:00:00 2001 From: Levente Kiss Date: Mon, 12 Feb 2024 15:37:39 +0100 Subject: [PATCH] chore: requested change - user friendly msg for a condition --- src/command/stamp/buy.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/command/stamp/buy.ts b/src/command/stamp/buy.ts index 0d8c49a7..35a3d6d7 100644 --- a/src/command/stamp/buy.ts +++ b/src/command/stamp/buy.ts @@ -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'))