fix: update module.flow (#537)

This commit is contained in:
Jack May 2019-10-22 16:10:21 -07:00 committed by Michael Vines
parent 81c2e8f9c1
commit 0d582c180f
2 changed files with 8 additions and 2 deletions

View File

@ -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,

View File

@ -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,
);
}
});
});