chore: npm run lint:fix
This commit is contained in:
parent
b0e5714ca0
commit
d6ecb2699f
|
@ -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,
|
||||
);
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue