Closed NFhbar closed 6 years ago
@NFhbar Is there any way you can show PatientRecords.sol
? It's difficult to debug this without a target to error against.
Yes of course, my bad:
https://gist.github.com/NFhbar/5394dcb4ee4147abeb25f4fe503549f9#file-patientrecords-sol-L168
@NFhbar This appears to be a bug in our recent work to support the emit
keyword - slightly mysterious tbh.
It looks like it can be worked around in your case by rewriting this expression at ~L298 with enclosing braces e.g
if (msg.value > 0) {
emit Deposit(msg.sender, msg.value);
}
Apologies, thanks so much for opening the issue. Please feel free to add to this thread if you discover more.
I can confirm that changing
if (msg.value > 0)
emit Deposit(msg.sender, msg.value);
to
if (msg.value > 0) {
emit Deposit(msg.sender, msg.value);
}
Solves the problem. Thank you!
@NFhbar This should be fixed in 0.5.0
. Thanks!
I get the following error:
truffle.js:
.solcover.js
Any ideas?