fix: update module.flow (#537)
This commit is contained in:
@ -240,6 +240,7 @@ declare module '@solana/web3.js' {
|
|||||||
|
|
||||||
// === src/loader.js ===
|
// === src/loader.js ===
|
||||||
declare export class Loader {
|
declare export class Loader {
|
||||||
|
static getMinNumSignatures(dataLength: number): number;
|
||||||
static load(
|
static load(
|
||||||
connection: Connection,
|
connection: Connection,
|
||||||
payer: Account,
|
payer: Account,
|
||||||
@ -252,6 +253,7 @@ declare module '@solana/web3.js' {
|
|||||||
// === src/bpf-loader.js ===
|
// === src/bpf-loader.js ===
|
||||||
declare export class BpfLoader {
|
declare export class BpfLoader {
|
||||||
static programId: PublicKey;
|
static programId: PublicKey;
|
||||||
|
static getMinNumSignatures(dataLength: number): number;
|
||||||
static load(
|
static load(
|
||||||
connection: Connection,
|
connection: Connection,
|
||||||
payer: Account,
|
payer: Account,
|
||||||
|
@ -80,9 +80,13 @@ test('get program accounts', async () => {
|
|||||||
account1.publicKey.toBase58(),
|
account1.publicKey.toBase58(),
|
||||||
]).toEqual(expect.arrayContaining([element[0]]));
|
]).toEqual(expect.arrayContaining([element[0]]));
|
||||||
if (element[0] == account0.publicKey) {
|
if (element[0] == account0.publicKey) {
|
||||||
expect(element[1].lamports).toBe(SOL_LAMPORTS - feeCalculator.lamportsPerSignature);
|
expect(element[1].lamports).toBe(
|
||||||
|
SOL_LAMPORTS - feeCalculator.lamportsPerSignature,
|
||||||
|
);
|
||||||
} else {
|
} 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