Expected ; but got 'event'
Clash Royale CLAN TAG#URR8PPP
up vote
1
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
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
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
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
up vote
1
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
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 4 hours ago


vĩ vũ
61
61
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
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Å©
2 hours ago
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Å©
2 hours ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
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Å©
27 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
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Å©
2 hours ago
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Å©
2 hours ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
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Å©
27 mins ago
add a comment |Â
up vote
3
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Å©
2 hours ago
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Å©
2 hours ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
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Å©
27 mins ago
add a comment |Â
up vote
3
down vote
up vote
3
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 3 hours ago


Rob Hitchens
22.5k43571
22.5k43571
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Å©
2 hours ago
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Å©
2 hours ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
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Å©
27 mins ago
add a comment |Â
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Å©
2 hours ago
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Å©
2 hours ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
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Å©
27 mins ago
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Å©
2 hours ago
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Å©
2 hours ago
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Å©
2 hours ago
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Å©
2 hours ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
I pasted that into Remix and it compiled without error.
– Rob Hitchens
1 hour ago
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Å©
27 mins ago
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Å©
27 mins ago
add a comment |Â
vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.
vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.
vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.
vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.
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