diff --git a/src/bee-debug.ts b/src/bee-debug.ts index c125e0e4..33599e70 100644 --- a/src/bee-debug.ts +++ b/src/bee-debug.ts @@ -527,7 +527,7 @@ export class BeeDebug { const stamp = await stamps.createPostageBatch(this.getKy(options), amount, depth, options) - if (options?.waitForUsable) { + if (options?.waitForUsable !== false) { await this.waitForUsablePostageStamp(stamp, options?.waitForUsableTimeout) } diff --git a/src/types/index.ts b/src/types/index.ts index d8b3b0d8..40908327 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -555,12 +555,12 @@ export interface PostageBatchOptions extends RequestOptions { /** * The returned Promise will await until the purchased Postage Batch is usable. * In other word, it has to have enough block confirmations that Bee pronounce it usable. - * If turned on, this significantly prolong the creation of postage batch! + * When turned on, this significantly prolongs the creation of postage batch! + * * If you plan to use the stamp right away for some action with Bee (like uploading using this stamp) it is * highly recommended to use this option, otherwise you might get errors "stamp not usable" from Bee. * - * In next breaking release this option will be turned on by default. - * @default false + * @default true */ waitForUsable?: boolean