second-state / SOLL

SOLL is a new compiler for generate Ewasm from solidity and yul. See a demo here: https://asciinema.org/a/ezJqNLicn5fya02zwu4VXIo8a
https://www.secondstate.io/
377 stars 23 forks source link

Fix bug of mapping with struct #39

Closed jacky860226 closed 3 years ago

jacky860226 commented 3 years ago

fix the compile error of

contract map_t {
    struct ST {
        uint8 x;
    }

    mapping(uint8 => ST) M;
    ST a;

    function test() public {
        M[1] = a;
    }
}
jacky860226 commented 3 years ago

fixed