0

Function prototype is

    function pay1(uint xyz) payable{
    require(xyz==msg.value);
}

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

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)

| improve this answer | |

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.