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.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityFunction 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.
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)