Cryptocurrency Ethereum Mastering Development

comparing msg.value with uint

I got tx reverted after i compare it in function on contract. function checkPremiumisPayed() public payable returns(bool){ require(msg.value == _acommon.PremiumPayment ); return true; } How can I compare these? uint PremiumPayment and eg. 100 for value on TX // optional if you are invoking say a payable function value: parseInt(data[9]), here is 100