File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
questions/lesson-6/3-create-contract Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ us to implement some methods and events.
108108
109109``` solidity
110110// Methods:
111- function name() public view returns (string)
112- function symbol() public view returns (string)
113- function decimals() public view returns (uint8)
111+ function name() public view returns (string) // OPTIONAL
112+ function symbol() public view returns (string) // OPTIONAL
113+ function decimals() public view returns (uint8) // OPTIONAL
114114function totalSupply() public view returns (uint256)
115115function balanceOf(address _owner) public view returns (uint256 balance)
116116function transfer(address _to, uint256 _value) public returns (bool success)
Original file line number Diff line number Diff line change 11{
2- "question" : " Why is it necessary to provide the token's name and symbol in the constructor of an ERC-20 contract?" ,
2+ "question" : " Why is it necessary to provide the token's name and symbol in the constructor of an ERC-20 contract when using OpenZeppelin ?" ,
33 "options" : [
44 {
55 "answer" : " To personalize the token with emojis"
88 "answer" : " To prevent the contract from deploying successfully"
99 },
1010 {
11- "answer" : " To fulfill the ERC-20 standard and avoid errors " ,
11+ "answer" : " To provide the arguments that are inherited by the ERC20 Contract. " ,
1212 "correct" : true
1313 }
1414 ]
Original file line number Diff line number Diff line change 3939 "answer" : " 5"
4040 },
4141 {
42- "answer" : " 7 "
42+ "answer" : " 9 "
4343 },
4444 {
45- "answer" : " 9 " ,
45+ "answer" : " 6 " ,
4646 "correct" : true
4747 },
4848 {
You can’t perform that action at this time.
0 commit comments