Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

C4-742: Fix contract upgrades #32

Merged
merged 4 commits into from
Feb 7, 2023
Merged

Conversation

0xju1ie
Copy link
Member

@0xju1ie 0xju1ie commented Feb 7, 2023

C4 Issues:
code-423n4/2022-12-gogopool-findings#742
code-423n4/2022-12-gogopool-findings#729

What changed

The Upgrade method now doesn't delete the address associated with the contract name just after setting it, allowing contracts to be upgraded with the same name. We also now delete the boolean value of contract exists last, so that the ProtocolDAO itself can be upgraded.

Added some additional sanity checks when upgrading and registering.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants