0mkara / etheratom

Solidity compilation and Ethereum contract execution interface for hackable atom editor
https://atom.io/packages/etheratom
GNU General Public License v3.0
252 stars 41 forks source link

Can't compile big contracts? #31

Closed stonecoldpat closed 7 years ago

stonecoldpat commented 7 years ago

Hi,

I am able to compile contracts like this: https://github.com/amiller/sprites/blob/master/contractSprite.sol

But I cannot seem to compile: https://github.com/stonecoldpat/anonymousvoting/blob/master/AnonymousVoting.sol

I am not getting any error messages - I just hit "compile" and nothing happens.

I actually developed the anonymous voting contract using this atom interface. I've been having trouble ever since upgrading my Mac OS, so I've re-installed everything from scratch... any way I can produce a debug log to find out what is going on?

0mkara commented 7 years ago

Hi, I tried compiling your AnonymousVoting.sol I needed to change pragma solidity 0.4.8; to pragma solidity ^0.4.0; and I commented out charity = _charity; on line 539 which was giving Type uint256 is not implicitly convertible to expected type address. using Linter package. After that the contract compiled correctly. I have not yet added error handling. @stonecoldpat