Skip to content

Commit

Permalink
msg value should be zero when price is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaryash90 committed Aug 15, 2023
1 parent 78e5aea commit 803d687
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/open-edition/OpenEditionLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ contract OpenEditionLogic is
uint256 _pricePerToken
) internal override {
if (_pricePerToken == 0) {
require(msg.value == 0, "!Value");
return;
}

Expand Down

0 comments on commit 803d687

Please sign in to comment.