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

Fix incorrect types to list conversion #576

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

montyly
Copy link
Member

@montyly montyly commented Aug 12, 2020

The tuple resulting from a high level calls to a structure, where the structure has mapping or array will not contain the mapping or array.

Example

contract A{

    struct St{
        uint a;
        uint b;
        mapping(uint => uint) map;
        uint[] array;
    }

    mapping (uint => St) public st;
    
}

contract B{

    function f(A a) public{
        (uint a, uint b) = a.st(0);
    }
}

@montyly montyly merged commit 1ebf43c into dev Aug 12, 2020
@montyly montyly deleted the dev-fix-structure-to-list-conversion branch August 12, 2020 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant