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
I have a simple test that validates upgrade and it was reverting with the message
[FAIL: revert: Failed to run upgrade safety validation: Warning: Potentially unsafe deployment of src/Contracy.sol:Contract
You are using the `unsafeAllow.delegatecall` flag.
]
while this shouldn’t be an error at all.
Printing result.stdout value on the _validate function I was able to find the real problem
✘ src/Contract.sol:Contract (upgrades from ...)
src/Contract.sol:880: Upgraded `__gap` to an incompatible type
- Bad storage gap resize from 50 to 43
Size decrease must match with corresponding variable inserts
> Set __gap array to size 44
Not sure how result is being parsed but looks like the information on result.stderr can be misleading, while the one in result.stdout seems to be more accurate.
The text was updated successfully, but these errors were encountered:
Hi there,
Thanks for such an amazing tool.
I have a simple test that validates upgrade and it was reverting with the message
while this shouldn’t be an error at all.
Printing
result.stdout
value on the_validate
function I was able to find the real problemNot sure how
result
is being parsed but looks like the information onresult.stderr
can be misleading, while the one inresult.stdout
seems to be more accurate.The text was updated successfully, but these errors were encountered: