Skip to content

Empty code causes failure to parse the compilation result. #175

@Subway2023

Description

@Subway2023

If the code is empty, SOLD will encounter a compilation crash instead of throwing an error. Solc does not crash. I think error handling needs to be optimized.

Sold version: sold 0.77.0+commit.32833737.Linux.g++

test.sol

sold test.sol


Warning: Source file does not specify required compiler version! Consider adding "pragma tvm-solidity ^0.77.0;"
--> output/sol/select_v2_quoted_string.sol

Failed to parse compilation result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions