-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathex11b.sol
42 lines (31 loc) · 916 Bytes
/
ex11b.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "../exerciceTemplate.sol";
/*
Exercice 11: Finding a hidden exercice
In this exercice, you need to:
- Read the documentation of another contract to understand its structure
- Extract contract ABI
- Use the ABI to extract the contract content and find the missing contract
- Call the contract function
- Your points are credited by the contract
*/
/*
What you need to know to complete this exercice
A) What was included in the previous exercices
B) Documentation of the Kelsen framework on https://github.com/97network/Kelsen/blob/master/docs/01_standardOrgan.md
*/
contract ex11b is exerciceTemplate {
uint public secretValue;
constructor(ERC20TD _TDERC20)
exerciceTemplate(_TDERC20)
{
secretValue = 31020;
}
function setSecretValue(uint _newSecretValue)
public
onlyTeachers
{
secretValue = _newSecretValue;
}
}