Closed collinc97 closed 3 years ago
It is odd, but calling setup over this case does not guarantee error (~40% chance of success). Still digging, will post updates once I figure out what exactly happens.
UPD
main
without console.assert
and then re-run with added console.assert(c == a+b)
, results are not persistent. leo clean
on new function makes everything right, but if conditions above are met, then result is unpredictable - can setup successfully or fail
🚀 Feature
Console functions like
console.assert
will fail inside a leomain()
function.They produce the following error.
This error message should be improved to highlight that console functions do not create constraints in the circuit and should only be used in a testing context.