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

Refactor hook call to use inline assembly #705

Merged
merged 3 commits into from
May 26, 2024
Merged

Conversation

shuhuiluo
Copy link
Contributor

Related Issue

Which issue does this pull request resolve?

Description of changes

Updated the callHook function in Hooks.sol to use low-level calls with inline assembly, improving code efficiency. Also removed the _revert private method due to redundancy. As a result, the bytecode size has reduced in several .forge-snapshot files.

Updated the `callHook` function in Hooks.sol to use low-level calls with inline assembly, improving code efficiency. Also removed the `_revert` private method due to redundancy. As a result, the bytecode size has reduced in several .forge-snapshot files.
gretzke
gretzke previously approved these changes May 25, 2024
hensha256
hensha256 previously approved these changes May 26, 2024
@hensha256 hensha256 enabled auto-merge (squash) May 26, 2024 22:53
@hensha256 hensha256 merged commit c0adc1c into Uniswap:main May 26, 2024
5 of 6 checks passed
@shuhuiluo shuhuiluo deleted the callHook branch May 26, 2024 22:56
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.

3 participants