(Fix) Removing usage of a free pointer from EternalStorageProxy's fallback function #151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Mandatory) Description
Using
0
instead ofptr
is safe as it is described in zeppelinos/zos-lib#70:return
orrevert
, and both of them stop the EVM execution. So the ABI doesn't need to be followed after the assembly block.delegatecall
, so we can do whatever we want with the proxy's one.I've tested the work of upgradable smart contracts after these changes by unit tests and
scripts/migrate/migrateAll.js
- the contracts work fine.(Mandatory) What is it: (Fix), (Feature), or (Refactor)
(Fix)