refactor: employ prettier

This commit is contained in:
Michael Vines
2018-11-04 11:41:21 -08:00
parent 9a043344d5
commit 1d6abb17cf
35 changed files with 1498 additions and 856 deletions

View File

@ -45,7 +45,9 @@ export class Loader {
BufferLayout.u32('bytesLengthPadding'),
BufferLayout.seq(
BufferLayout.u8('byte'),
BufferLayout.offset(BufferLayout.u32(), -8), 'bytes'),
BufferLayout.offset(BufferLayout.u32(), -8),
'bytes',
),
]);
const chunkSize = 256;
@ -69,7 +71,9 @@ export class Loader {
programId: this.programId,
userdata,
});
transactions.push(sendAndConfirmTransaction(this.connection, program, transaction));
transactions.push(
sendAndConfirmTransaction(this.connection, program, transaction),
);
// Run up to 8 Loads in parallel to prevent too many parallel transactions from
// getting rejected with AccountInUse.