Skip to main content
8 events
when toggle format what by license comment
Aug 14, 2017 at 12:01 history edited dcorking CC BY-SA 3.0
add my version strings
Aug 12, 2017 at 8:15 history edited dcorking CC BY-SA 3.0
I did more thorough tests on the OPs code : screenshots and outcome
Aug 10, 2017 at 9:42 comment added dcorking Please paste extra detail into your question, not as comments.
Aug 10, 2017 at 9:40 comment added Olivier Rikken sure, no problem. this is the corresponding HTML:
Aug 10, 2017 at 9:34 history edited dcorking CC BY-SA 3.0
removed examples and updated discussion based on OP comment clarifying the question
Aug 10, 2017 at 9:27 comment added dcorking I'd prefer not to install your contract to test your code. Please break the code up into smaller pieces so you can show us the exact output of the toWei function? It might also help to also post the HTML snippet and screenshot of what your user enters.
Aug 10, 2017 at 9:21 comment added Olivier Rikken sorry for the misunderstanding guys. With 1-1 I meant one on one. So if I fill in 1, my code reads it as 1 wei, instead of 1 ether (or 1000000000000000000 wei). Don't know why it is not converting to Wei, but keeps thinking the input (someone puts in in HTML) is Wei instead ether.
Aug 10, 2017 at 9:00 history answered dcorking CC BY-SA 3.0