Skip to content

Commit 626300a

Browse files
authored
fix: do not check postage batch for gateway feed upload (#629)
1 parent afd79cb commit 626300a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/command/feed/feed-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class FeedCommand extends RootCommand {
4848

4949
this.console.quiet(manifest.toHex())
5050

51-
if (!this.quiet) {
51+
if (!this.quiet && !(await this.bee.isGateway())) {
5252
printStamp(await this.bee.getPostageBatch(stamp), this.console, { shortenBatchId: true })
5353
}
5454

src/command/feed/upload.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ export class Upload extends FeedCommand implements LeafCommand {
2222
super.init()
2323

2424
if (!this.stamp) {
25-
const stamp = await pickStamp(this.bee, this.console)
26-
this.stamp = stamp
27-
this.fileUpload.stamp = stamp
25+
if (await this.bee.isGateway()) {
26+
this.stamp = '0'.repeat(64)
27+
this.fileUpload.stamp = '0'.repeat(64)
28+
} else {
29+
const stamp = await pickStamp(this.bee, this.console)
30+
this.stamp = stamp
31+
this.fileUpload.stamp = stamp
32+
}
2833
}
2934

3035
const reference = await this.runUpload()

0 commit comments

Comments
 (0)