From 5275150987334df394d0ffbb164eb42e229bfcc9 Mon Sep 17 00:00:00 2001 From: Joao Victor Pereira Santos Date: Fri, 2 Feb 2024 16:15:59 -0300 Subject: [PATCH] refactor: switch to emit swap canceled with msg.sender #186 --- contracts/Swaplace.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Swaplace.sol b/contracts/Swaplace.sol index b0fe62a..4df0283 100644 --- a/contracts/Swaplace.sol +++ b/contracts/Swaplace.sol @@ -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); } /**