Skip to content

Commit

Permalink
Update value check on prepay facet (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppecrj authored Jun 13, 2024
1 parent 1d07eb7 commit 307225a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/factory/facets/prepay/PrepayFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract PrepayFacet is
uint256 cost = _calculateFee(supply);

// validate payment covers membership fee
if (msg.value < cost) revert PrepayBase__InvalidAmount();
if (msg.value != cost) revert PrepayBase__InvalidAmount();

// calculate new total supply
uint256 newSupply = IERC721A(membership).totalSupply() + supply;
Expand Down

0 comments on commit 307225a

Please sign in to comment.