From 5c7d5ee3519c84ea907417bdd2dbab407727070f Mon Sep 17 00:00:00 2001 From: Yash Date: Thu, 11 Jan 2024 22:50:21 +0530 Subject: [PATCH] fix check for royalty amount --- contracts/extension/upgradeable/RoyaltyPayments.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/extension/upgradeable/RoyaltyPayments.sol b/contracts/extension/upgradeable/RoyaltyPayments.sol index fc353376c..2b5f504be 100644 --- a/contracts/extension/upgradeable/RoyaltyPayments.sol +++ b/contracts/extension/upgradeable/RoyaltyPayments.sol @@ -68,7 +68,7 @@ abstract contract RoyaltyPaymentsLogic is IRoyaltyPayments { if (royaltyEngineAddress == address(0)) { try IERC2981(tokenAddress).royaltyInfo(tokenId, value) returns (address recipient, uint256 amount) { - require(amount < value, "Invalid royalty amount"); + require(amount <= value, "Invalid royalty amount"); recipients = new address payable[](1); amounts = new uint256[](1);