Closed piwonskp closed 1 year ago
I switched to this branch, built warp and tried running it outside of the directory on some contracts: ERC20, conditionalSimple, freeFunction. Only freeFunction.sol was transpiled successfully, others had import errors. I looked and freeFunction.sol doesn't import anything from warplib, so I guess it's not an indicator.
Can you please give an example that I can run to test this?
Please try again, it should be fixed now
I switched to this branch, built warp and tried running it outside of the directory on some contracts: ERC20, conditionalSimple, freeFunction. Only freeFunction.sol was transpiled successfully, others had import errors. I looked and freeFunction.sol doesn't import anything from warplib, so I guess it's not an indicator. Can you please give an example that I can run to test this?
Please try again, it should be fixed now
It worked!
There are two ways to retrieve warp root properly:
The difference is
__dirname
returns the pathwarp/build
whilerequire.main.filename
returnswarp/bin