Skip to content

Commit 17c10d4

Browse files
authored
RoyaltyPayments: fix check for royalty amount (#599)
fix check for royalty amount
1 parent 2568498 commit 17c10d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/extension/upgradeable/RoyaltyPayments.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ abstract contract RoyaltyPaymentsLogic is IRoyaltyPayments {
6868

6969
if (royaltyEngineAddress == address(0)) {
7070
try IERC2981(tokenAddress).royaltyInfo(tokenId, value) returns (address recipient, uint256 amount) {
71-
require(amount < value, "Invalid royalty amount");
71+
require(amount <= value, "Invalid royalty amount");
7272

7373
recipients = new address payable[](1);
7474
amounts = new uint256[](1);

0 commit comments

Comments
 (0)