chore: run lint
This commit is contained in:
parent
7181d3aeea
commit
ebda95bd11
@ -1056,7 +1056,7 @@ export class Connection {
|
|||||||
}
|
}
|
||||||
assert(typeof result.result !== 'undefined');
|
assert(typeof result.result !== 'undefined');
|
||||||
if (!result.result) {
|
if (!result.result) {
|
||||||
throw new Error('Confirmed block '+slot+' not found');
|
throw new Error('Confirmed block ' + slot + ' not found');
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
blockhash: new PublicKey(result.result.blockhash).toString(),
|
blockhash: new PublicKey(result.result.blockhash).toString(),
|
||||||
|
@ -297,9 +297,13 @@ export class StakeProgram {
|
|||||||
{pubkey: stakeAccount, isSigner: false, isWritable: true},
|
{pubkey: stakeAccount, isSigner: false, isWritable: true},
|
||||||
{pubkey: votePubkey, isSigner: false, isWritable: false},
|
{pubkey: votePubkey, isSigner: false, isWritable: false},
|
||||||
{pubkey: SYSVAR_CLOCK_PUBKEY, 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: STAKE_CONFIG_ID, isSigner: false, isWritable: false},
|
||||||
{pubkey: authorizedPubkey, isSigner: true, isWritable: false}
|
{pubkey: authorizedPubkey, isSigner: true, isWritable: false},
|
||||||
],
|
],
|
||||||
programId: this.programId,
|
programId: this.programId,
|
||||||
data,
|
data,
|
||||||
|
@ -658,9 +658,7 @@ test('get confirmed block', async () => {
|
|||||||
result: null,
|
result: null,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
await expect(
|
await expect(connection.getConfirmedBlock(10000)).rejects.toThrow();
|
||||||
connection.getConfirmedBlock(10000),
|
|
||||||
).rejects.toThrow();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('get recent blockhash', async () => {
|
test('get recent blockhash', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user