hyperledger/solang

Solang does not check if value fits into `bytesN`

LucasSte opened this issue · 0 comments

contract Test2 {
    address public a;
    address public b;

    constructor(address c, address d) {
        a = c;
        b = d;
        bytes1 g = 256;
    }
}

That contract works fine in Solang, but solc warns about Type int_const 256 is not implicitly convertible to expected type bytes1.