fix: update module.flow (#537)
This commit is contained in:
@ -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,
|
||||
|
@ -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,
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user