Skip to content

Commit

Permalink
js: Format code (#6)
Browse files Browse the repository at this point in the history
#### 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.
  • Loading branch information
joncinque authored Aug 28, 2024
1 parent 4bb15ba commit b91b91a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
}
Expand All @@ -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;
})(),
]);
Expand Down

0 comments on commit b91b91a

Please sign in to comment.