From 9b05e9d21e8ef0b469aac4d6f06746a45d6cbcc2 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sun, 5 Apr 2020 22:10:20 +0800 Subject: [PATCH] fix: add getNonce method to defs --- web3.js/module.d.ts | 8 ++++++++ web3.js/module.flow.js | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/web3.js/module.d.ts b/web3.js/module.d.ts index db0cec087f..66ce6f0d78 100644 --- a/web3.js/module.d.ts +++ b/web3.js/module.d.ts @@ -248,6 +248,14 @@ declare module '@solana/web3.js' { dataLength: number, commitment?: Commitment, ): Promise; + getNonce( + nonceAccount: PublicKey, + commitment?: Commitment, + ): Promise; + getNonceAndContext( + nonceAccount: PublicKey, + commitment?: Commitment, + ): Promise>; } // === src/nonce-account.js === diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 7a74c17455..00a967c3f7 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -261,6 +261,14 @@ declare module '@solana/web3.js' { dataLength: number, commitment: ?Commitment, ): Promise; + getNonce( + nonceAccount: PublicKey, + commitment: ?Commitment, + ): Promise; + getNonceAndContext( + nonceAccount: PublicKey, + commitment: ?Commitment, + ): Promise>; } // === src/nonce-account.js ===