I have this code in my contract:
require(msg.value == 0.06 ether);
But I want to replace
0.06 with a variable.
So I tried this:
uint256 price = 0.06; require(msg.value == price ether);
But this doesn't work.
So does anyone know how to combine variables with an Ether unit suffix?