Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTheGreek committed May 3, 2019
1 parent 3b557bc commit e0d1f4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/rpc/api/mock/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export class MockAPI implements IValidatorApi {
}

public async getDuties(validatorPubkeys: bytes48[]): Promise<{currentVersion: Fork; validatorDuties: ValidatorDuty[]}> {
return {} as {currentVersion: Fork; validatorDuties: ValidatorDuty[]};
// eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion
return {} as {currentVersion: Fork; validatorDuties: ValidatorDuty[]};
}

public async produceBlock(slot: Slot, randaoReveal: bytes): Promise<BeaconBlock> {
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/api/modules/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ValidatorApi implements IValidatorApi {

public async getGenesisTime(): Promise<number64> {
return await this.chain.genesisTime;
}s
}

public async getSyncingStatus(): Promise<boolean | SyncingStatus> {
// eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion
Expand Down

0 comments on commit e0d1f4d

Please sign in to comment.