Skip to content

Gas golf DeleGatorCore.sol#52

Open
pegahcarter wants to merge 1 commit intoMetaMask:mainfrom
pegahcarter:patch-1
Open

Gas golf DeleGatorCore.sol#52
pegahcarter wants to merge 1 commit intoMetaMask:mainfrom
pegahcarter:patch-1

Conversation

@pegahcarter
Copy link

What?

  • Reduce bytecode size of modifiers.

Why?

  • Reduce contract size on deployment.

How?

  • Each function a modifier decorates appends bytecode. By changing the code inside a modifier from conditional statements to a function pointer, there is less bytecode appended across the contract.

Reduce bytecode size of modifiers.  Each function a modifier decorates appends bytecode.  By changing the code inside a modifier from conditional statements to a function pointer, there is less bytecode appended across the contract.
@pegahcarter pegahcarter requested a review from a team as a code owner February 28, 2025 20:11
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.

1 participant