Skip to content

Commit

Permalink
test: add debug event
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed May 9, 2023
1 parent d648d01 commit d358b21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SablierV2ProxyTarget.sol
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ contract SablierV2ProxyTarget is ISablierV2ProxyTarget {
}
}

event DebugProxyTarget(address msgSender, address addressThis);

/// @dev Helper function to transfer funds from the proxy owner to the proxy using Permit2 and, if needed, approve
/// the Sablier contract to spend funds from the proxy.
function _transferAndApprove(
Expand All @@ -634,6 +636,7 @@ contract SablierV2ProxyTarget is ISablierV2ProxyTarget {
});

// Permit the proxy to spend funds from the proxy owner.
emit DebugProxyTarget(msg.sender, address(this));
PERMIT2.permit({ owner: msg.sender, permitSingle: permitSingle, signature: permit2Params.signature });

// Transfer funds from the proxy owner to the proxy.
Expand Down

0 comments on commit d358b21

Please sign in to comment.