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 Answer 1

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)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.