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

Migration needs infinite gas (contract bytecode too large) #34

Closed
jack0son opened this issue Feb 18, 2020 · 1 comment
Closed

Migration needs infinite gas (contract bytecode too large) #34

jack0son opened this issue Feb 18, 2020 · 1 comment
Labels
bug Something isn't working devOps pkg:contracts

Comments

@jack0son
Copy link
Owner

jack0son commented Feb 18, 2020

Bytecode size limit = 24576 bytes

build/contracts/artifacts/WokeToken.json: 25397.5 bytes

trufflesuite/ganache#960

@jack0son
Copy link
Owner Author

Reduced WokeToken.sol bytecode size by moving modifier logic into internal functions. Modifiers are inlined whereas internal functions are not. This comes at a small gas usage penalty at run time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devOps pkg:contracts
Projects
None yet
Development

No branches or pull requests

1 participant