Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Modifier Translation Error #237

Closed
stephensj2 opened this issue Jan 29, 2020 · 1 comment
Closed

Type Modifier Translation Error #237

stephensj2 opened this issue Jan 29, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@stephensj2
Copy link
Collaborator

stephensj2 commented Jan 29, 2020

It appears that annotating variable types with required modifiers such as payable affect VeriSol's ability to find functions. When trying to translate the function transferOwnership in the file given below, VeriSol fails with the following message:

VeriSol translation error: File , Line -1, Contract Ownable, Function transferOwnership:: Cannot find a function with signature: _transferOwnership(address)

The specified function does appear in the file, however it has type _transferOwnership(address payable). It should be noted that the variable used to call _transferOwnership is also of type address payable.

Ownable.txt

@stephensj2 stephensj2 changed the title Variable nnotations Variable Anotations Translation Error Jan 29, 2020
@stephensj2 stephensj2 changed the title Variable Anotations Translation Error Type Modifier Translation Error Jan 29, 2020
@shuvendu-lahiri shuvendu-lahiri added the bug Something isn't working label Jan 31, 2020
shuvendu-lahiri added a commit that referenced this issue Feb 14, 2020
shuvendu-lahiri added a commit that referenced this issue Feb 14, 2020
Some tests for constructor chaining, and fixes for #230, #237
shuvendu-lahiri added a commit that referenced this issue Feb 14, 2020
shuvendu-lahiri added a commit that referenced this issue Feb 14, 2020
@shuvendu-lahiri
Copy link
Member

closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants