diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index 7457b34c4b..025f98d4c2 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -1296,8 +1296,9 @@ export class Connection { } if (attempts === 50) { throw new Error( - `Unable to obtain a new blockhash after ${Date.now() - - startTime}ms`, + `Unable to obtain a new blockhash after ${ + Date.now() - startTime + }ms`, ); } diff --git a/web3.js/src/transaction.js b/web3.js/src/transaction.js index b63b8012a9..3c5805d0d3 100644 --- a/web3.js/src/transaction.js +++ b/web3.js/src/transaction.js @@ -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 checkWritable = x.isWritable === y.isWritable ? 0 : x.isWritable ? -1 : 1; diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index 85d1b5cf8b..048b777066 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -202,7 +202,7 @@ test('get program accounts', async () => { ); expect(programAccounts.length).toBe(2); - programAccounts.forEach(function(element) { + programAccounts.forEach(function (element) { expect([ account0.publicKey.toBase58(), account1.publicKey.toBase58(),