Skip to content

Commit

Permalink
solhint: ignoring empty try&catch blocks on closing blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Jul 22, 2024
1 parent ec50673 commit eb84efa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/BlockRewardHbbft.sol
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,16 @@ contract BlockRewardHbbft is
// more details: https://github.com/DMDcoin/diamond-contracts-core/issues/231
if (governancePotAddress.code.length > 0 ) {
IGovernancePot governancePot = IGovernancePot(governancePotAddress);

// solhint-disable no-empty-blocks
try governancePot.switchPhase() {
// all good
} catch {
// we got an error on switch phase.
// phase switching currently not working in an automated way.
// This is a problem in the DAO, but closing blocks should still work as expected.
}
// solhint-enable no-empty-blocks
}
}

Expand Down

0 comments on commit eb84efa

Please sign in to comment.