Skip to content

Commit

Permalink
Fixed a blunder #227
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeard002 committed Jun 6, 2024
1 parent e84906a commit bd5a902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Swaplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {
swap.config
);

if (msg.value > 0) {
if (value > 0) {
if (recipient == 0) {
if (value * 1e12 != msg.value) revert InvalidValue();
}
else revert InvalidSender();
else if (msg.value > 0) revert InvalidSender();
}

emit SwapCreated(swapId, msg.sender, allowed);
Expand Down

0 comments on commit bd5a902

Please sign in to comment.