Skip to content

Lack of support for function pointers #798

Closed
@gustavo-grieco

Description

@gustavo-grieco

Run echidna on this:

pragma solidity ^0.7.1;

contract FunctionArg {

    function echidna_test() external pure returns (bool) {
      return true;
    }

    function ptr(function()external f) public {
        f();
    }
}

will result in:

echidna-test: internal error: method type
CallStack (from HasCallStack):
  error, called at src/EVM/Solidity.hs:339:22 in hevm-0.49.0-GY0kNk5Azi3A3vL1VQ1lX4:EVM.Solidity

which is caused by hevm not parsing correctly that ABI feature.

Metadata

Metadata

Assignees

Labels

hevmRequires changes in hevm

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions