diff --git a/.github/workflows/tests-rc.yaml b/.github/workflows/tests-rc.yaml index 83c8ddc2..47cb462d 100644 --- a/.github/workflows/tests-rc.yaml +++ b/.github/workflows/tests-rc.yaml @@ -58,11 +58,11 @@ jobs: - name: Deposit to chequebook run: | - swarm-cli cheque deposit 100000000000000000 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633 + swarm-cli cheque deposit 10 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:11633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:21633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:31633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:41633 - name: Print swarm-cli status continue-on-error: true diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e752252a..7e8863bc 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -42,11 +42,11 @@ jobs: - name: Deposit to chequebook run: | - swarm-cli cheque deposit 100000000000000000 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633 - swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633 + swarm-cli cheque deposit 10 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:11633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:21633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:31633 + swarm-cli cheque deposit 10 --bee-api-url http://localhost:41633 - name: Print swarm-cli status continue-on-error: true diff --git a/src/command/stamp/list.ts b/src/command/stamp/list.ts index f6a69888..57c2a91b 100644 --- a/src/command/stamp/list.ts +++ b/src/command/stamp/list.ts @@ -46,7 +46,7 @@ export class List extends StampCommand implements LeafCommand { super.init() this.console.verbose(`Listing postage stamps...`) - const stamps = (await this.bee.getAllPostageBatch()) || [] + const stamps = (await this.bee.getPostageBatches()) || [] if (stamps.length === 0) { this.console.error('You do not have any stamps.') diff --git a/src/service/stamp/index.ts b/src/service/stamp/index.ts index 1598176c..ffaa877d 100644 --- a/src/service/stamp/index.ts +++ b/src/service/stamp/index.ts @@ -60,7 +60,7 @@ export function printStamp(stamp: PostageBatch, console: CommandLog, settings?: if (settings?.showTtl) { const ttl = Dates.secondsToHumanTime(stamp.duration.toSeconds()) - const expires = stamp.duration.toEndDate().toISOString().slice(0, 10) + const expires = stamp.duration.toEndDate().toISOString().replace('T', ' ').slice(0, 19) + ' UTC' console.log(createKeyValue('TTL', `${ttl} (${expires})`)) }