chore: npm run lint:fix
This commit is contained in:
committed by
Justin Starry
parent
b0e5714ca0
commit
d6ecb2699f
@ -289,7 +289,12 @@ export class StakeInstruction {
|
|||||||
): AuthorizeWithSeedStakeParams {
|
): AuthorizeWithSeedStakeParams {
|
||||||
this.checkProgramId(instruction.programId);
|
this.checkProgramId(instruction.programId);
|
||||||
this.checkKeyLength(instruction.keys, 2);
|
this.checkKeyLength(instruction.keys, 2);
|
||||||
const {newAuthorized, stakeAuthorizationType, authoritySeed, authorityOwner} = decodeData(
|
const {
|
||||||
|
newAuthorized,
|
||||||
|
stakeAuthorizationType,
|
||||||
|
authoritySeed,
|
||||||
|
authorityOwner,
|
||||||
|
} = decodeData(
|
||||||
STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,
|
STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,
|
||||||
instruction.data,
|
instruction.data,
|
||||||
);
|
);
|
||||||
|
@ -146,7 +146,9 @@ test('authorizeWithSeed', () => {
|
|||||||
const transaction = StakeProgram.authorizeWithSeed(params);
|
const transaction = StakeProgram.authorizeWithSeed(params);
|
||||||
expect(transaction.instructions).toHaveLength(1);
|
expect(transaction.instructions).toHaveLength(1);
|
||||||
const [stakeInstruction] = transaction.instructions;
|
const [stakeInstruction] = transaction.instructions;
|
||||||
expect(params).toEqual(StakeInstruction.decodeAuthorizeWithSeed(stakeInstruction));
|
expect(params).toEqual(
|
||||||
|
StakeInstruction.decodeAuthorizeWithSeed(stakeInstruction),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('split', () => {
|
test('split', () => {
|
||||||
|
Reference in New Issue
Block a user