chore: prettier fixes

This commit is contained in:
Justin Starry
2020-02-14 22:33:11 +08:00
committed by Michael Vines
parent ea1295300d
commit 8cf98ec4e2
5 changed files with 21 additions and 7 deletions

View File

@@ -72,7 +72,9 @@ export class ValidatorInfo {
* @param buffer config account data
* @return null if info was not found
*/
static fromConfigData(buffer: Buffer | Uint8Array | Array<number>): ValidatorInfo | null {
static fromConfigData(
buffer: Buffer | Uint8Array | Array<number>,
): ValidatorInfo | null {
const PUBKEY_LENGTH = 32;
let byteArray = [...buffer];

View File

@@ -80,7 +80,9 @@ export class VoteAccount {
* @param buffer account data
* @return VoteAccount
*/
static fromAccountData(buffer: Buffer | Uint8Array | Array<number>): VoteAccount {
static fromAccountData(
buffer: Buffer | Uint8Array | Array<number>,
): VoteAccount {
const va = VoteAccountLayout.decode(toBuffer(buffer), 0);
va.nodePubkey = new PublicKey(va.nodePubkey);
va.authorizedVoterPubkey = new PublicKey(va.authorizedVoterPubkey);