ObsidianLabs / ConfluxStudio

An IDE to develop smart contracts on the Conflux blockchain

Home Page:https://www.obsidians.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to send CFX on v0.6.0

Thegaram opened this issue · comments

Conflux Studio v0.6.0 does not send the correct CFX amount. This is probably the root cause of #76 as well.

image

image

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);
    }
}