fix: add type def for NonceAccount.fromAccountData

This commit is contained in:
Justin Starry
2020-05-13 22:44:41 +08:00
committed by Michael Vines
parent 02a278b3b2
commit a112d9cedf
3 changed files with 11 additions and 2 deletions

View File

@ -298,6 +298,9 @@ declare module '@solana/web3.js' {
authorizedPubkey: PublicKey;
nonce: Blockhash;
feeCalculator: FeeCalculator;
static fromAccountData(
buffer: Buffer | Uint8Array | Array<number>,
): NonceAccount;
}
declare export var NONCE_ACCOUNT_LENGTH: number;