madfish-solutions / sol2ligo

⌨️ 🔮 Transpiler from Solidity to PascalLIGO language
https://madfish-solutions.github.io/sol2ligo/
MIT License
70 stars 4 forks source link

More that 8 bytes literal conversion is corrupted #214

Closed konchunas closed 4 years ago

konchunas commented 4 years ago

None of the following bytes are converted correctly. Both this literals are translated as 0x000000000000000000000000000000000000000000000000000034a34234; losing higher bytes

pragma solidity ^0.4.16;

contract BytesTest {
    function test0() public {
        bytes30 b1 = 0x1034a34234;
        bytes30 b2 = 0xee1034a34234;
    }
}
konchunas commented 4 years ago

Closed by #215