Add _isCallerStreamSender
function
#198
Replies: 2 comments 2 replies
-
This is an interesting idea, but I suggest we sleep on it for a few days before making a final decision. My main hesitation is naming. Finding a good name for this ain't easy, because there is a bit of a terminology "congestion" here. As discussed in #81, it can sometimes be confusing what sender one is referring to - is it the Ethereum message caller ( Suggested alternative names for this function:
To respond to your stated pros.
|
Beta Was this translation helpful? Give feedback.
-
Locking, implemented in #205. |
Beta Was this translation helpful? Give feedback.
-
As I mentioned in this comment, I suggest adding a function that returns whether the caller of a function is the sender or not.
Pros
getSender
function fromSablierV2
contract and to change it toexternal
isCallerSender
would be more gas efficient because it would return a boolean instead of an address, not by much thoSablierV2
contractBeta Was this translation helpful? Give feedback.
All reactions