Function prototype is

    function pay1(uint xyz) payable{

I set (in remix) value to 30 ether and called function with the argument 30.

1 Answer 1


uint xyz in the function's argument counts in wei. The msg.value should be 30 wei for that function call to work. 1 ether = 1e18 wei (pentilion)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.