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

Error upgrading contract to 1.5.0 #261

Closed
davidatwhiletrue opened this issue Dec 29, 2023 · 0 comments · Fixed by #263
Closed

Error upgrading contract to 1.5.0 #261

davidatwhiletrue opened this issue Dec 29, 2023 · 0 comments · Fixed by #263
Assignees

Comments

@davidatwhiletrue
Copy link
Collaborator

davidatwhiletrue commented Dec 29, 2023

It seems not possible to upgrade a contract to 1.5.0 when the current version already has CES events enabled (and you want to keep it enabled).

Possibly, the problem is that the migrate() method tries to reinitialize CES keys and that leads to an error.

utils::init_events();

I guess events_mode should be an optional runtime argument when migrating the contract. And keep the current mode if argument is omitted.

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 a pull request may close this issue.

2 participants