diff --git a/src/command/stamp/buy.ts b/src/command/stamp/buy.ts index 46144917..ef47a33f 100644 --- a/src/command/stamp/buy.ts +++ b/src/command/stamp/buy.ts @@ -82,7 +82,7 @@ export class Buy extends StampCommand implements LeafCommand { const estimatedCost = Utils.getStampCost(this.depth, BigInt(this.amount)) const { bzzBalance } = await this.bee.getWalletBalance() - if (estimatedCost.gt(bzzBalance)) { + if (!this.dev && estimatedCost.gt(bzzBalance)) { this.console.error('You do not have enough BZZ to create this postage stamp.') this.console.error(`Estimated cost: ${estimatedCost.toDecimalString()} xBZZ`) this.console.error(`Available balance: ${bzzBalance.toDecimalString()} xBZZ`) diff --git a/src/command/stamp/create.ts b/src/command/stamp/create.ts index 7a826ad3..185c9e9d 100644 --- a/src/command/stamp/create.ts +++ b/src/command/stamp/create.ts @@ -87,7 +87,7 @@ export class Create extends StampCommand implements LeafCommand { const estimatedCost = await this.bee.getStorageCost(size, duration) const { bzzBalance } = await this.bee.getWalletBalance() - if (estimatedCost.gt(bzzBalance)) { + if (!this.dev && estimatedCost.gt(bzzBalance)) { this.console.error('You do not have enough BZZ to create this postage stamp.') this.console.error(`Estimated cost: ${estimatedCost.toDecimalString()} xBZZ`) this.console.error(`Available balance: ${bzzBalance.toDecimalString()} xBZZ`)