Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IR issues in Remix #452

Open
kunjani opened this issue Aug 11, 2019 · 1 comment
Open

IR issues in Remix #452

kunjani opened this issue Aug 11, 2019 · 1 comment

Comments

@kunjani
Copy link

kunjani commented Aug 11, 2019

I am looking at flintc ir output in Remix. There are a couple of Solidity compilation errors that come up every time as a result of some flintc boilerplate output.
(i) The first line of every solidity program begins
pragma solidity <compiler version>;
The current operational compiler version is 0.5.2 but flintc outputs 0.4.21

(ii) The flintc code makes a call to a function sha3 which existed in version 0.4.21 but now is not recognised. I believe that it could be replaced by a function keccak256.

(iii) The fallback function needs to be declared as external and not public.

@matteobilardi
Copy link
Contributor

matteobilardi commented Aug 15, 2019

This can be solved by setting the solidity compiler version to 0.4.24 as the current version of Flint does not support Solidity 0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants