Skip to content

feat(ct): add semgrep rule to use encodeCall#12626

Merged
smartcontracts merged 2 commits intodevelopfrom
sc/ct-semgrep-use-encodecall
Oct 25, 2024
Merged

feat(ct): add semgrep rule to use encodeCall#12626
smartcontracts merged 2 commits intodevelopfrom
sc/ct-semgrep-use-encodecall

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

encodeCall is almost always better than encodeWithSelector because
it maintains type safety. Prefer encodeCall unless
encodeWithSelector is actually necessary.

encodeCall is almost always better than encodeWithSelector because
it maintains type safety. Prefer encodeCall unless
encodeWithSelector is actually necessary.
Updates a number of contracts to use encodeCall instead of
encodeWithSelector where possible.
@smartcontracts smartcontracts added this pull request to the merge queue Oct 25, 2024
Merged via the queue into develop with commit d317e96 Oct 25, 2024
@smartcontracts smartcontracts deleted the sc/ct-semgrep-use-encodecall branch October 25, 2024 01:15
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
* feat(ct): add semgrep rule to use encodeCall

encodeCall is almost always better than encodeWithSelector because
it maintains type safety. Prefer encodeCall unless
encodeWithSelector is actually necessary.

* maint(ct): update contracts to use encodeCall

Updates a number of contracts to use encodeCall instead of
encodeWithSelector where possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants