solang
solang copied to clipboard
Solidity Compiler for Solana and Polkadot
Version: v0.3.3: v0.3.3-70-g32a45ea1 Description: Solc can compile normally. ```solidity contract C { function f() public pure returns (string memory result) { assembly { result := hex"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" } } } ```...
Version: v0.3.3: v0.3.3-70-g32a45ea1 Description: Solc can compile normally. The error location in the source code can be found at the [link](https://github.com/hyperledger-solang/solang/blob/main/src/abi/anchor.rs#L451). ```solidity contract Test { struct FuncStruct { function ()...
Version: v0.3.3: v0.3.3-70-g32a45ea1 Description: If you remove '**public**', Solang can compile normally. If you replace 2\**100 with value within 2\**32, Solang can also compile normally. The error location in the...
On the Solana target, we do not validate the number of accounts passed to the program. However, in [contract_storage_data](https://github.com/hyperledger-solang/solang/blob/main/src/emit/solana/mod.rs#L287), we access `SolParameters.ka[0].data` (`[0, 0, 0, 3]`). Thus, if we pass...
Hello! First of all I want to say that this is a really great project. What you've put together here with Solidity is so much simpler, nicer, and easier to...
Version: v0.3.3: Atlantis ```solidity contract FunctionArray { function(uint256) external returns (uint256)[] public functionArray; } ``` ``` solang compile --target solana test.sol thread 'main' panicked at 'internal error: entered unreachable code:...
Version: v0.3.3: Atlantis Description: In abi.encodePacked(), being empty and including type(Test).name will both cause errors. ```solidity contract Test { function f() public pure returns (bytes32) { abi.encodePacked(type(Test).name); } } ```...
Version: v0.3.3: Atlantis Description: The statement return (z[0]); causes an execution error. ```solidity contract C { function f() public returns (string memory) { string memory x = "Hello"; string memory...
Version: v0.3.3: Atlantis ```solidity contract C { function f() public returns (uint x) { assembly { x := true } } } ``` Reproduction: I set up a Solang compilation...
Version: v0.3.3: Atlantis ```solidity contract C { function g(string calldata) external returns (bool) { return true; } function main() external returns (bool) { function (string memory) external returns (bool) ptr...