You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forceImport only supports importing a proxy or beacon. Enhance this to support importing an implementation contract.
Example use case:
User previously deployed implementation contract manually
Import implementation contract so it will be in the manifest
Run defender.proposeUpgrade to propose an upgrade -- if the contract was imported above, it would not need be redeployed
Consider a new function forceImportImplementation separate from forceImport, to avoid users accidentally importing a proxy as an implementation. Use the same forceImport function for simplicity. Contract will only be imported as an implementation if it is not detected as a proxy or beacon.
The text was updated successfully, but these errors were encountered:
ericglau
changed the title
Support forceImport for an implementation contract
Support importing an implementation contract
Jun 14, 2022
forceImport only supports importing a proxy or beacon. Enhance this to support importing an implementation contract.
Example use case:
defender.proposeUpgrade
to propose an upgrade -- if the contract was imported above, it would not need be redeployedConsider a new functionUse the sameforceImportImplementation
separate fromforceImport
, to avoid users accidentally importing a proxy as an implementation.forceImport
function for simplicity. Contract will only be imported as an implementation if it is not detected as a proxy or beacon.The text was updated successfully, but these errors were encountered: