typeCheckAbiEncodeCallFunction should type check the arguments on functionPointerType->asExternallyCallableFunction instead of teh plain function type

This commit is contained in:
nishant-sachdeva
2022-03-24 18:53:46 +05:30
parent b08190c284
commit 4c6066bfad
9 changed files with 90 additions and 73 deletions
@@ -0,0 +1,11 @@
interface testInterface {
function A(address payable) external;
}
contract testContract {
function main() external view {
abi.encodeCall(testInterface.A, (address(0)));
}
}
// ----
// TypeError 5407: (171-183): Cannot implicitly convert component at position 0 from "address" to "address payable".