From 2a1bd19cbbcd415ff1f6b4353dd16ba6ea0abf60 Mon Sep 17 00:00:00 2001 From: Roshan Date: Tue, 30 Jan 2024 15:11:22 +0800 Subject: [PATCH] fix lint issue --- contracts/BC_fusion/StakeHub.sol | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contracts/BC_fusion/StakeHub.sol b/contracts/BC_fusion/StakeHub.sol index f36b8231..05d335c6 100644 --- a/contracts/BC_fusion/StakeHub.sol +++ b/contracts/BC_fusion/StakeHub.sol @@ -788,12 +788,16 @@ contract StakeHub is System, Initializable { } else if (key.compareStrings("minSelfDelegationBNB")) { if (value.length != 32) revert InvalidValue(key, value); uint256 newMinSelfDelegationBNB = value.bytesToUint256(32); - if (newMinSelfDelegationBNB < 1000 ether || newMinSelfDelegationBNB > 100_000 ether) revert InvalidValue(key, value); + if (newMinSelfDelegationBNB < 1000 ether || newMinSelfDelegationBNB > 100_000 ether) { + revert InvalidValue(key, value); + } minSelfDelegationBNB = newMinSelfDelegationBNB; } else if (key.compareStrings("minDelegationBNBChange")) { if (value.length != 32) revert InvalidValue(key, value); uint256 newMinDelegationBNBChange = value.bytesToUint256(32); - if (newMinDelegationBNBChange < 0.1 ether || newMinDelegationBNBChange > 10 ether) revert InvalidValue(key, value); + if (newMinDelegationBNBChange < 0.1 ether || newMinDelegationBNBChange > 10 ether) { + revert InvalidValue(key, value); + } minDelegationBNBChange = newMinDelegationBNBChange; } else if (key.compareStrings("maxElectedValidators")) { if (value.length != 32) revert InvalidValue(key, value);