Skip to content

Update contract initializer #397

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

Merged
merged 6 commits into from
Nov 29, 2022

Conversation

ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Nov 25, 2022

Also modify the tests and migrations to respect the new structure. This change will remove non-necessary migrations to result in a cleaner migration path. It also reduces the deployment costs.

Due to changing the initializer the contract size became larger than max accepted size (24kb) and I reduced the optimizer runs. In a separate PR I'll try to convert our error messages to proper structs to reduce the size based on @njkumr suggestion.

For ^^^ I added truffle-contract-size plugin and by running npx truffle run contract-size (after compiling the contracts) you can see the size of the contracs.

Also modify the tests and migrations to respect the new structure.
This change will remove non-necessary migrations to be cleaner.
@ali-behjati ali-behjati merged commit 45ce077 into main Nov 29, 2022
@ali-behjati ali-behjati deleted the abehjati/eth-update-contract-initializer branch November 29, 2022 11: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.

2 participants