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 abi.decode translation #332

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Fix incorrect abi.decode translation #332

merged 1 commit into from
Sep 12, 2019

Conversation

montyly
Copy link
Member

@montyly montyly commented Sep 11, 2019

An incorrect order in the conversion operation was preventing abi.decode to be properly translated

Example

pragma experimental ABIEncoderV2;

interface Data{
    struct St{
        uint a;
        uint b;
    }
}

library Lib{

}

contract C is Data{
    
    using Lib for address;

    function g(bytes memory to_decode) public{
        St[] memory s = abi.decode(to_decode, (St[]));
        return ;
    }

}

@montyly montyly merged commit e2474d5 into dev Sep 12, 2019
@montyly montyly deleted the dev-fix-abidecode branch October 1, 2019 14:52
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