Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

warp silently fails on an exclusive solidity version interval #21

Closed
temyurchenko opened this issue Aug 9, 2021 · 0 comments
Closed

Comments

@temyurchenko
Copy link
Contributor

How to reproduce:

In the example contract ERC20.sol replace the first line with pragma solidity >0.4.18;.

Expected

Warp successfully generates an ERC20.cairo file.

Actual

There is no ERC20.cairo file and no indication of failure or reasons for failure


I think the issue is that get_source_version in Compile.py simply grabs the first version boundary without considering that it might be an exclusive boundary as in the example above. Thus, compiling the contract with this version fails (for some reason, silently)

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants