Skip to content

Commit a960d4c

Browse files
committed
fix update package
1 parent 3f8fce4 commit a960d4c

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/commands/api/AddressCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export class AddressCommand extends CommandRunner {
3333
minterApi
3434
.api()
3535
.getAddressGrpc(candidate, options.delegated, options.height)
36-
.then((r) => {
37-
const result = r.toObject();
36+
.then((result) => {
3837
this.contentExporter.print(result, this.skipPip2Bip, options);
3938
})
4039
.catch(console.log);

src/commands/api/CandidateCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export class CandidateCommand extends CommandRunner {
3333
minterApi
3434
.api()
3535
.getCandidateGrpc(candidate, options.not_show_stakes, options.height)
36-
.then((r) => {
37-
const result = r.toObject();
36+
.then((result) => {
3837
this.contentExporter.print(result, this.skipPip2Bip, options);
3938
})
4039
.catch(console.log);

src/services/minter-api/minter-api.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export class MinterApiService extends GetMinterApi {
2727
// console.log('MinterApiService candidate');
2828
this.minterApi
2929
.getCandidateGrpc(candidate, notShowStakes, height)
30-
.then((r) => {
31-
const result = r.toObject();
30+
.then((result) => {
3231
// console.log(r.toObject())
3332
const param = 'status';
3433
console.warn(result[param]);

0 commit comments

Comments
 (0)