Skip to content

Gas golf DeleGatorCore.sol#52

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

Gas golf DeleGatorCore.sol#52
pegahcarter wants to merge 0 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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet