From 7a354595c9352a7d4d9dbd2dfff88b6a11f06d50 Mon Sep 17 00:00:00 2001 From: Jon C Date: Wed, 28 Aug 2024 11:51:40 +0200 Subject: [PATCH] js: Format code #### Problem Two PRs went in, one for CI, one for concurrent fetches, but the second one wasn't properly formatted, so main fails CI. #### Solution Format the code. --- js/src/rpc.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/src/rpc.ts b/js/src/rpc.ts index 0922dcc..b53f4c3 100644 --- a/js/src/rpc.ts +++ b/js/src/rpc.ts @@ -24,7 +24,10 @@ export async function getStakeActivation( (async () => { const stakeAccountEncoded = await fetchEncodedAccount(rpc, stakeAddress); assertAccountExists(stakeAccountEncoded); - const stakeAccount = decodeAccount(stakeAccountEncoded, stakeAccountCodec); + const stakeAccount = decodeAccount( + stakeAccountEncoded, + stakeAccountCodec + ); if (stakeAccount.data.discriminant === 0) { throw new Error(''); } @@ -36,7 +39,10 @@ export async function getStakeActivation( SYSVAR_STAKE_HISTORY_ADDRESS ); assertAccountExists(stakeHistoryAccountEncoded); - const stakeHistory = decodeAccount(stakeHistoryAccountEncoded, stakeHistoryCodec); + const stakeHistory = decodeAccount( + stakeHistoryAccountEncoded, + stakeHistoryCodec + ); return stakeHistory; })(), ]);