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

SlithIR: Incorrect conversion of return tuple #89

Closed
montyly opened this issue Dec 6, 2018 · 0 comments
Closed

SlithIR: Incorrect conversion of return tuple #89

montyly opened this issue Dec 6, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@montyly
Copy link
Member

montyly commented Dec 6, 2018

Slither does not convert correctly return with tuple expression:

contract Test{

    function test(uint a, uint b) returns(uint, uint){
        return(a,b);
    }   

    function test2(uint a) returns(uint){
        return(a);
    }   

    function test3(uint a) returns(uint){
        return a;
    }
}

Only test3 is correctly translated to slithir:

	Function test(uint256,uint256)
		Expression: (a,b)
		IRs:
	Function test2(uint256)
		Expression: (a)
		IRs:
	Function test3(uint256)
		Expression: a
		IRs:
			RETURN a
@montyly montyly added the bug Something isn't working label Dec 6, 2018
@montyly montyly self-assigned this Dec 6, 2018
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

1 participant