Skip to content

Commit

Permalink
Merge pull request #189 from 0xjoaovpsantos/186-refactor-emit-swap-ca…
Browse files Browse the repository at this point in the history
…nceled

Suggestion: Refactor emit swap canceled to use msg.sender to spend less gas
  • Loading branch information
0xneves authored Feb 2, 2024
2 parents 890d327 + 5275150 commit 02bb801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Swaplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {

_swaps[swapId].config = 0;

emit SwapCanceled(swapId, _swaps[swapId].owner);
emit SwapCanceled(swapId, msg.sender);
}

/**
Expand Down

0 comments on commit 02bb801

Please sign in to comment.