Solidity-coverage: Error when running SC on contracts using experimental ABIEncoderV2

Created on 23 Jun 2018  路  9Comments  路  Source: sc-forks/solidity-coverage

I am running Solidity Coverage on a contract that uses structs with experimental ABIEncoderV2. The contract compiles and runs on Truffle, but when I run SC on it I get the following error:

SyntaxError: Expected comment, end of line, string, or whitespace but "A" found. Line: 2, Column: 21 Exiting without generating coverage...

The line where SC crashes is the following:

pragma experimental ABIEncoderV2;

I am currently running solidity-coverage version 0.4.15.
Let me know if there is any more information I can provide.

Thanks,

bug

Most helpful comment

@marinatorras Thank you, perfect. Will fix in the next couple days.

All 9 comments

@marinatorras Thank you, perfect. Will fix in the next couple days.

+1

+1

+1

Hey, any updates on this fix. Do you have any ideas of what file this bug is in/ if it is an easy fix by just avoiding calling an error in the parser when you hit the 'ABIEncoderV2' string?

@kimyachi I'm so sorry - I didn't get to this yet this week - things are slightly crazy at work. Will really fix this ASAP.

@marinatorras This should be fixed in 0.5.5 - thanks for reporting and apologies for the delay.

@cgewecke Awesome, thank you so much!

Can confirm, ABIEncoderV2 doesn't barf with 0.5.5. It does barf elsewhere though... will try and fix, then make an issue if needed.

Was this page helpful?
0 / 5 - 0 ratings