0

I'm newbie of solidity develop flatform, when I do a example from solidity document at Remix IDE, I have a error with my event and I don't know how to fix it, here my code:

contract Coin {
    address public minter;

    mapping (address => uint) public banlances


    event Sent (address from, address to , uint amount);


    constructor() public {
        minter = msg.sender;
    }
    function mint(address recevier, uint amount) public {
        require(msg.sender == minter)
        require(amount < 1e60);
        banlances[recevier] += amount;
    }

}
5

Put a ; at the end of the first line.

Also third to last line.

7
  • thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity – vĩ vũ Sep 28 '18 at 4:45
  • my code: contract Coursetro { string public fName; uint public age; function setInstructor(string _fName, uint _age) public { fName = _fName; age = _age; } function getInstructor() public view returns (string, uint) { return (fName, age); } } – vĩ vũ Sep 28 '18 at 4:45
  • I pasted that into Remix and it compiled without error. – Rob Hitchens Sep 28 '18 at 5:38
  • but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help – vĩ vũ Sep 28 '18 at 6:42
  • You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem. – Rob Hitchens Sep 28 '18 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.