Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add script for deterministic deployment, remove ffi, support stdJson, fix comment #48

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: fix comment
  • Loading branch information
smol-ninja committed Apr 20, 2024
commit cf211d2afe74e85ce148bebe09c923f40fbba83f
4 changes: 2 additions & 2 deletions src/SablierV2OpenEnded.sol
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ contract SablierV2OpenEnded is ISablierV2OpenEnded, NoDelegateCall, SablierV2Ope
// Retrieve the recipient from storage.
address recipient = _streams[streamId].recipient;

// Check: if `msg.sender` is neither the stream's recipient, the withdrawal address must be the recipient.
if (to != recipient && !(msg.sender == recipient)) {
// Check: if `msg.sender` is not the stream's recipient, the withdrawal address must be the recipient.
if (to != recipient && msg.sender != recipient) {
revert Errors.SablierV2OpenEnded_WithdrawalAddressNotRecipient(streamId, msg.sender, to);
}

Expand Down
Loading