Known issues
Here is a list of known issues which you may face using Sol2Ink:
Added or fixed in v 2.0.0
inability to parse librariesinability to parse uncompilable contracts(since 2.0.0 most cases can be parsed, otherwise Sol2Ink will throw a comprehesive error)calling functions with a valueoccasional incorrect parsing of selectors within bracketsincorrect rewriting of fields inside structs extracted from a mappingincorrectly allowing modifiers to take functions as parametersinability to parse inheritationinability to parse multi-file projectsbinary operation in a function only performs the reading of the value, not the updating
To be fixed
- output contracts can be incompilable and need some fixing from the developer (our long-term goal is to make all contracts compilable)
- Solidity abi functions (encode, decode)
- Overloading functions is supported in Solidity but not in Rust
- Functions as parameters
Sol2Ink still needs to walk some path. Every time you use Sol2Ink to transpile your contracts from Solidity to ink!, run the generated code by a human brain to get the best results! If you find any issue, let us know in our Element chat, Discord or simply open an issue in our GitHub repo