Expected ; but got 'event'
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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;
solidity
add a comment |Â
up vote
0
down vote
favorite
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;
solidity
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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;
solidity
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;
solidity
solidity
edited Sep 30 at 18:30
Ismael
13k42345
13k42345
asked Sep 28 at 3:04
vé và ©
41
41
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
Put a ; at the end of the first line.
Also third to last line.
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 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 at 4:45
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 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 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 at 15:15
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
Put a ; at the end of the first line.
Also third to last line.
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 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 at 4:45
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 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 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 at 15:15
 |Â
show 3 more comments
up vote
5
down vote
Put a ; at the end of the first line.
Also third to last line.
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 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 at 4:45
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 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 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 at 15:15
 |Â
show 3 more comments
up vote
5
down vote
up vote
5
down vote
Put a ; at the end of the first line.
Also third to last line.
Put a ; at the end of the first line.
Also third to last line.
answered Sep 28 at 3:09
Rob Hitchens
22.7k43571
22.7k43571
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 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 at 4:45
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 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 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 at 15:15
 |Â
show 3 more comments
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 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 at 4:45
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 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 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 at 15:15
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 at 4:45
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 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 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 at 4:45
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 at 5:38
I pasted that into Remix and it compiled without error.
â Rob Hitchens
Sep 28 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 at 6:42
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 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 at 15:15
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 at 15:15
 |Â
show 3 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f59620%2fexpected-but-got-event%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password