warp
warp copied to clipboard
Transpile libraries
The idea here is to clone the ContractDefinition nodes of kind Library, and change its kind to Contract. This way, it does not interfere with the references to the Library node functions, and it transpiles the Library clone as a contract.
Could you add a test?
I removed the externalize-functions, because this is only for transpile the internal and private functions which aren't referenced by public or external functions. After discussed with Rodrigo, I realized these functions are not necessary for the transpiled library, because they are not reachable.
Are we waiting for a semantic test run or can we merge this?