diff --git a/web3.js/src/stake-program.js b/web3.js/src/stake-program.js index c2b4a369a5..8828121949 100644 --- a/web3.js/src/stake-program.js +++ b/web3.js/src/stake-program.js @@ -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, ); diff --git a/web3.js/test/stake-program.test.js b/web3.js/test/stake-program.test.js index 170d17ed64..295d55a019 100644 --- a/web3.js/test/stake-program.test.js +++ b/web3.js/test/stake-program.test.js @@ -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', () => {