chore: prettier fixes

This commit is contained in:
Justin Starry
2020-03-24 12:03:26 +08:00
committed by Michael Vines
parent be53ab5aa4
commit b9ade46c41
3 changed files with 5 additions and 4 deletions

View File

@ -1296,8 +1296,9 @@ export class Connection {
} }
if (attempts === 50) { if (attempts === 50) {
throw new Error( throw new Error(
`Unable to obtain a new blockhash after ${Date.now() - `Unable to obtain a new blockhash after ${
startTime}ms`, Date.now() - startTime
}ms`,
); );
} }

View File

@ -215,7 +215,7 @@ export class Transaction {
} }
}); });
allKeys.sort(function(x, y) { allKeys.sort(function (x, y) {
const checkSigner = x.isSigner === y.isSigner ? 0 : x.isSigner ? -1 : 1; const checkSigner = x.isSigner === y.isSigner ? 0 : x.isSigner ? -1 : 1;
const checkWritable = const checkWritable =
x.isWritable === y.isWritable ? 0 : x.isWritable ? -1 : 1; x.isWritable === y.isWritable ? 0 : x.isWritable ? -1 : 1;

View File

@ -202,7 +202,7 @@ test('get program accounts', async () => {
); );
expect(programAccounts.length).toBe(2); expect(programAccounts.length).toBe(2);
programAccounts.forEach(function(element) { programAccounts.forEach(function (element) {
expect([ expect([
account0.publicKey.toBase58(), account0.publicKey.toBase58(),
account1.publicKey.toBase58(), account1.publicKey.toBase58(),