Can someone tell me why I'm getting an error here? #240
brettmyles
started this conversation in
General
Replies: 4 comments 2 replies
-
Add a } to the end of line 11 :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SimpleStorage {
bool hasFavoriteNumber = true;
uint favoriteNumber;
function store(uint256 _favoriteNumber) public {
favoriteNumber = _favoriteNumber;
}
} @brettmyles check this out. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@brettmyles your missing a semicolon and brackets All functions are encased in brackets and every line of code ends with a semicolon in solidity.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure it out and it's killing me! Thanks so so much!
Beta Was this translation helpful? Give feedback.
All reactions