NethermindEth / warp

Warp - Bringing Solidity to Starknet at warp speed. Warp is a Solidity to Cairo Compiler, this allows teams to write/migrate Solidity to Cairo for easy onboarding into the StarkNet ecosystem.
https://nethermind.io/warp/
Apache License 2.0
754 stars 70 forks source link

Dockerhub latest tag & absolute warplib path #1076

Closed piwonskp closed 1 year ago

piwonskp commented 1 year ago

There are two ways to retrieve warp root properly:

The difference is __dirname returns the path warp/build while require.main.filename returns warp/bin

piwonskp commented 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

temyurchenko commented 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

It worked!