From 0d582c180f907ac44e78803e87a86faa5b683bfe Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 22 Oct 2019 16:10:21 -0700 Subject: [PATCH] fix: update module.flow (#537) --- web3.js/module.flow.js | 2 ++ web3.js/test/connection.test.js | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 92e80a68bb..25e198a764 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -240,6 +240,7 @@ declare module '@solana/web3.js' { // === src/loader.js === declare export class Loader { + static getMinNumSignatures(dataLength: number): number; static load( connection: Connection, payer: Account, @@ -252,6 +253,7 @@ declare module '@solana/web3.js' { // === src/bpf-loader.js === declare export class BpfLoader { static programId: PublicKey; + static getMinNumSignatures(dataLength: number): number; static load( connection: Connection, payer: Account, diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index d3d7e9abc6..0880cf68dc 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -80,9 +80,13 @@ test('get program accounts', async () => { account1.publicKey.toBase58(), ]).toEqual(expect.arrayContaining([element[0]])); if (element[0] == account0.publicKey) { - expect(element[1].lamports).toBe(SOL_LAMPORTS - feeCalculator.lamportsPerSignature); + expect(element[1].lamports).toBe( + SOL_LAMPORTS - feeCalculator.lamportsPerSignature, + ); } else { - expect(element[1].lamports).toBe(0.5 * SOL_LAMPORTS- feeCalculator.lamportsPerSignature); + expect(element[1].lamports).toBe( + 0.5 * SOL_LAMPORTS - feeCalculator.lamportsPerSignature, + ); } }); });