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
When a virtual function is used in the base contract with named arguments while being overridden with different name parameters the reorder arguments function can't find the argument. I believe it's because the function assigned to the IR is the overridden one which has different name parameters.
pragma solidity0.8.27;
contractA {
function a(uint256q) internalvirtual {}
function b() public { a({q: 23}); }
}
contractBisA {
function a(uint256w) internaloverride {}
}
...
File "/Users/simonemonica/virtual/slither-dev/slither/slither/slithir/convert.py", line 431, in reorder_arguments
ind = call_names.index(n)
^^^^^^^^^^^^^^^^^^^
ValueError: 'w' is not in list
The text was updated successfully, but these errors were encountered:
When a virtual function is used in the base contract with named arguments while being overridden with different name parameters the reorder arguments function can't find the argument. I believe it's because the function assigned to the IR is the overridden one which has different name parameters.
The text was updated successfully, but these errors were encountered: