When I use remix to execute a function with a bool field and I put 0 into it (which I interpret as false), the remix console output tells me "bool myBool": true (what I don't understand). So I would like to know:
- How do I pass
trueorfalsein general viaweb3.jsto asmart contract, as a stringString(true)? - Is
trueandfalseNOT the same as1and0forweb3and/orsolidity?