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.
108
108
109
109
``` solidity
110
110
// 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
114
114
function totalSupply() public view returns (uint256)
115
115
function balanceOf(address _owner) public view returns (uint256 balance)
116
116
function transfer(address _to, uint256 _value) public returns (bool success)
Original file line number Diff line number Diff line change 1
1
{
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 ?" ,
3
3
"options" : [
4
4
{
5
5
"answer" : " To personalize the token with emojis"
8
8
"answer" : " To prevent the contract from deploying successfully"
9
9
},
10
10
{
11
- "answer" : " To fulfill the ERC-20 standard and avoid errors " ,
11
+ "answer" : " To provide the arguments that are inherited by the ERC20 Contract. " ,
12
12
"correct" : true
13
13
}
14
14
]
Original file line number Diff line number Diff line change 39
39
"answer" : " 5"
40
40
},
41
41
{
42
- "answer" : " 7 "
42
+ "answer" : " 9 "
43
43
},
44
44
{
45
- "answer" : " 9 " ,
45
+ "answer" : " 6 " ,
46
46
"correct" : true
47
47
},
48
48
{
You can’t perform that action at this time.
0 commit comments