From fb078e5e015137eac48b2bbc9f33f0f97c179807 Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Wed, 14 Apr 2021 09:15:24 -0700 Subject: [PATCH] ERT upgrade for PolicyManager. --- .../blockchain/eth/sol/source/contracts/PolicyManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nucypher/blockchain/eth/sol/source/contracts/PolicyManager.sol b/nucypher/blockchain/eth/sol/source/contracts/PolicyManager.sol index 30fea11a8..dfdcd367d 100644 --- a/nucypher/blockchain/eth/sol/source/contracts/PolicyManager.sol +++ b/nucypher/blockchain/eth/sol/source/contracts/PolicyManager.sol @@ -17,7 +17,7 @@ import "contracts/proxy/Upgradeable.sol"; /** * @title PolicyManager * @notice Contract holds policy data and locks accrued policy fees -* @dev |v6.2.1| +* @dev |v6.2.2| */ contract PolicyManager is Upgradeable { using SafeERC20 for NuCypherToken; @@ -341,7 +341,7 @@ contract PolicyManager is Upgradeable { { NodeInfo storage node = nodes[_node]; // protection from calling not migrated node, see migrate() - require(node.previousFeePeriod < getCurrentPeriod()); + require(node.previousFeePeriod <= getCurrentPeriod()); if (_processedPeriod1 != 0) { updateFee(node, _processedPeriod1); }