Unable to send CFX on v0.6.0
Thegaram opened this issue · comments
Péter Garamvölgyi commented
Conflux Studio v0.6.0 does not send the correct CFX amount. This is probably the root cause of #76 as well.
pragma solidity >=0.5.0 <0.7.0;
contract Coin {
event SendCfxToContract(address, uint256);
function sendCfxToContract() public payable {
uint256 amount = msg.value;
emit SendCfxToContract(msg.sender, amount);
}
}
Leon commented
Fixed in latest version:
https://github.com/ObsidianLabs/ConfluxStudio/releases/tag/v0.7.1