Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Compilation fails (new string() ) #99

Closed
HCharlanes opened this issue Feb 29, 2016 · 2 comments
Closed

Compilation fails (new string() ) #99

HCharlanes opened this issue Feb 29, 2016 · 2 comments

Comments

@HCharlanes
Copy link

I can find this error when using truffle (with testrpc or geth).
This error does not appear when using browser-solidity (from sol version 2.0 2015.12.10 at least it does work)

Error compiling ./contracts/KrakenPriceTicker.sol:

:160:35: Error: Expected identifier
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
                                  ^
Compiliation failed. See above.

`

@silly-n
Copy link

silly-n commented Mar 11, 2016

Hi, I think solc will be bumped in 0.4 (you might as well try the pre-release, it compiles for me now, but doesn't get deployed, but that's another issue).

#75
#78

@tcoulter
Copy link
Contributor

Fixed on master after upgrading solc.

nakajo2011 pushed a commit to nakajo2011/truffle that referenced this issue Aug 7, 2018
Move `lib/contracts.js` and `lib/debug.js` into separate packages
nakajo2011 pushed a commit to nakajo2011/truffle that referenced this issue Aug 7, 2018
Handle Geth `unknown transaction` error gracefully
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

3 participants