I have some trouble with my code, basically I want to call the payable function in my Smart Contract through Web3.js, here is my code, I'm sure I did something wrong but I can't figure out where.
-
What is the problem? – Florian Castelain Sep 21 '18 at 16:12
-
When calling the function the MetaMask window pops up with a value of 0 Ether instead of 1 – Chris Sep 21 '18 at 16:22
you don't have use the address of instance when you are sending the ether to the payable function. sorry i didn't saw the updated answer.i was typing the answer but i was not able to refreh to your answer.
-
-
@Chris bro close this one so that other people don't have to look at this problem as they will see that this is not answered. – AVATAR Sep 21 '18 at 16:48
-
-