fix: add getNonce method to defs

This commit is contained in:
Justin Starry 2020-04-05 22:10:20 +08:00 committed by Michael Vines
parent 01f9a2ee4c
commit 9b05e9d21e
2 changed files with 16 additions and 0 deletions

8
web3.js/module.d.ts vendored
View File

@ -248,6 +248,14 @@ declare module '@solana/web3.js' {
dataLength: number,
commitment?: Commitment,
): Promise<number>;
getNonce(
nonceAccount: PublicKey,
commitment?: Commitment,
): Promise<NonceAccount>;
getNonceAndContext(
nonceAccount: PublicKey,
commitment?: Commitment,
): Promise<RpcResponseAndContext<NonceAccount>>;
}
// === src/nonce-account.js ===

View File

@ -261,6 +261,14 @@ declare module '@solana/web3.js' {
dataLength: number,
commitment: ?Commitment,
): Promise<number>;
getNonce(
nonceAccount: PublicKey,
commitment: ?Commitment,
): Promise<NonceAccount>;
getNonceAndContext(
nonceAccount: PublicKey,
commitment: ?Commitment,
): Promise<RpcResponseAndContext<NonceAccount>>;
}
// === src/nonce-account.js ===