From 4d62209eafed4bc5aafe2d64413f38b11a7d8e64 Mon Sep 17 00:00:00 2001 From: Miguel de Elias Date: Thu, 5 Dec 2024 16:28:22 -0300 Subject: [PATCH] fix: remove redundant non-zero check (TRST-R09) --- .../contracts/data-service/extensions/DataServiceFees.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/horizon/contracts/data-service/extensions/DataServiceFees.sol b/packages/horizon/contracts/data-service/extensions/DataServiceFees.sol index a2b0ed563..6685dc5a7 100644 --- a/packages/horizon/contracts/data-service/extensions/DataServiceFees.sol +++ b/packages/horizon/contracts/data-service/extensions/DataServiceFees.sol @@ -129,9 +129,7 @@ abstract contract DataServiceFees is DataService, DataServiceFeesV1Storage, IDat * @param _claimId The ID of the stake claim */ function _getNextStakeClaim(bytes32 _claimId) private view returns (bytes32) { - StakeClaim memory claim = claims[_claimId]; - require(claim.createdAt != 0, DataServiceFeesClaimNotFound(_claimId)); - return claim.nextClaim; + return claims[_claimId].nextClaim; } /**