chore: run lint

This commit is contained in:
Justin Starry 2020-02-03 16:59:39 +08:00 committed by Michael Vines
parent 7181d3aeea
commit ebda95bd11
3 changed files with 8 additions and 6 deletions

View File

@ -1056,7 +1056,7 @@ export class Connection {
}
assert(typeof result.result !== 'undefined');
if (!result.result) {
throw new Error('Confirmed block '+slot+' not found');
throw new Error('Confirmed block ' + slot + ' not found');
}
return {
blockhash: new PublicKey(result.result.blockhash).toString(),

View File

@ -297,9 +297,13 @@ export class StakeProgram {
{pubkey: stakeAccount, isSigner: false, isWritable: true},
{pubkey: votePubkey, isSigner: false, isWritable: false},
{pubkey: SYSVAR_CLOCK_PUBKEY, isSigner: false, isWritable: false},
{pubkey: SYSVAR_STAKE_HISTORY_PUBKEY, isSigner: false, isWritable: false},
{
pubkey: SYSVAR_STAKE_HISTORY_PUBKEY,
isSigner: false,
isWritable: false,
},
{pubkey: STAKE_CONFIG_ID, isSigner: false, isWritable: false},
{pubkey: authorizedPubkey, isSigner: true, isWritable: false}
{pubkey: authorizedPubkey, isSigner: true, isWritable: false},
],
programId: this.programId,
data,

View File

@ -658,9 +658,7 @@ test('get confirmed block', async () => {
result: null,
},
]);
await expect(
connection.getConfirmedBlock(10000),
).rejects.toThrow();
await expect(connection.getConfirmedBlock(10000)).rejects.toThrow();
});
test('get recent blockhash', async () => {