Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
fix: πŸ› add no-non-null-assertion disable line
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Oct 24, 2019
1 parent 44fc54e commit c4b9017
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,8 @@ export default abstract class AdvancedPLCRVotingCheckpointCommon extends ModuleC
const hash = ethersUtils.solidityKeccak256(keccakKeys, [...bgVotes, params.salt]);

assert.assert(
(onlyBallot as AdvancedPLCRVotingCheckpointVoteCommitEventArgs_3_1_0)._secretHash === hash,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
onlyBallot!._secretHash === hash,
ErrorCode.InvalidData,
'Invalid vote',
);
Expand Down

0 comments on commit c4b9017

Please sign in to comment.