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
Given the following function signature in an abstract contract:
function _withdraw(
uint256,
address,
uint256,
bytesmemory/* data */
) internalvirtual;
We would expect that the following code not compile:
function _withdraw(
uint256,
address,
uint256,
bytescalldata/* data */
) internaloverride { }
However it does, and when overriding it skews with the values of the previous parameters. The easiest way to prevent this mistake is to not allow changing the storage location.
The text was updated successfully, but these errors were encountered:
Are you using the latest compiler? This could be a serious issue with our previous fix, but it's more likely that you're running into this bug that has already been fixed in 0.8.14:
Given the following function signature in an abstract contract:
We would expect that the following code not compile:
However it does, and when overriding it skews with the values of the previous parameters. The easiest way to prevent this mistake is to not allow changing the storage location.
The text was updated successfully, but these errors were encountered: