Skip to content

Commit

Permalink
chore: remove some solhint workaround as latest version fixes the bug
Browse files Browse the repository at this point in the history
Remove this comment: "// solhint-disable-next-line reason-string" as the issue is solved.
solhint bug: protofire/solhint#157
  • Loading branch information
boolafish committed Oct 2, 2019
1 parent 3c76b57 commit 6ad717d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ contract SpendingConditionMock is ISpendingCondition {
returns (bool)
{
if (shouldRevert) {
// TODO: solhint disabled for now due to bug, https://github.com/protofire/solhint/issues/157
// solhint-disable-next-line reason-string
revert(REVERT_MESSAGE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ contract StateTransitionVerifierMock is IStateTransitionVerifier {
returns (bool)
{
if (shouldRevert) {
// TODO: solhint disabled for now due to bug, https://github.com/protofire/solhint/issues/157
// solhint-disable-next-line reason-string
revert("Failing on purpose");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ contract TxFinalizationVerifier is ITxFinalizationVerifier {
if (data.protocol == Protocol.MORE_VP()) {
return checkInclusionProof(data);
} else if (data.protocol == Protocol.MVP()) {
// TODO: solhint disabled for now due to bug, https://github.com/protofire/solhint/issues/157
// solhint-disable-next-line reason-string
revert("not supporting MVP yet");
} else {
// TODO: solhint disabled for now due to bug, https://github.com/protofire/solhint/issues/157
// solhint-disable-next-line reason-string
revert("invalid protocol value");
}
}
Expand All @@ -44,12 +40,8 @@ contract TxFinalizationVerifier is ITxFinalizationVerifier {
if (data.protocol == Protocol.MORE_VP()) {
return data.txBytes.length > 0;
} else if (data.protocol == Protocol.MVP()) {
// TODO: solhint disabled for now due to bug, https://github.com/protofire/solhint/issues/157
// solhint-disable-next-line reason-string
revert("not supporting MVP yet");
} else {
// TODO: solhint disabled for now due to bug, https://github.com/protofire/solhint/issues/157
// solhint-disable-next-line reason-string
revert("invalid protocol value");
}
}
Expand Down

0 comments on commit 6ad717d

Please sign in to comment.