chore: npm run lint:fix

This commit is contained in:
Justin Starry 2020-08-26 12:58:32 +08:00 committed by Justin Starry
parent b0e5714ca0
commit d6ecb2699f
2 changed files with 9 additions and 2 deletions

View File

@ -289,7 +289,12 @@ export class StakeInstruction {
): AuthorizeWithSeedStakeParams {
this.checkProgramId(instruction.programId);
this.checkKeyLength(instruction.keys, 2);
const {newAuthorized, stakeAuthorizationType, authoritySeed, authorityOwner} = decodeData(
const {
newAuthorized,
stakeAuthorizationType,
authoritySeed,
authorityOwner,
} = decodeData(
STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,
instruction.data,
);

View File

@ -146,7 +146,9 @@ test('authorizeWithSeed', () => {
const transaction = StakeProgram.authorizeWithSeed(params);
expect(transaction.instructions).toHaveLength(1);
const [stakeInstruction] = transaction.instructions;
expect(params).toEqual(StakeInstruction.decodeAuthorizeWithSeed(stakeInstruction));
expect(params).toEqual(
StakeInstruction.decodeAuthorizeWithSeed(stakeInstruction),
);
});
test('split', () => {