Deploy and explain your own contract
About 970 wordsAbout 3 min
Sepolia only
Deploy to Sepolia only. Never deploy a course exercise to mainnet, and never use a wallet holding real funds.
What you're doing
Deploying your contract from Part 3, calling it, and explaining what it stores and what changes when you use it.
The deployment is the easy part
You already did it in Part 3. What we are checking is that you can say what your contract remembers, what changes when someone calls it, and what it cannot protect against.
That last one matters most. Anyone can deploy a contract. Knowing its limits is the difference between having followed instructions and having understood them.
You may use the provided Guestbook unchanged, make a small modification yourself, or make one with AI assistance. More code receives no extra credit. AI assistance is allowed; completion depends on whether you can explain your contract, not on how it was written.
What to submit
Contract address — the
0xaddress from RemixDeployment transaction hash — the transaction that created it
One successful write transaction hash — your
setMessagecallAll three must be on Sepolia and must open on the explorer.
Your source code
Paste it, or link a file in your GitHub repo from Week 0 Part 1.
Name one read function, one write function, and one event in your contract
One line each. Say which is which.
Three short answers
- What state does your contract store? (1–2 sentences)
- What changes when the write function is called? (1–2 sentences)
- Name one limitation or security consideration. (1–2 sentences)
Expected length
Roughly 200–300 words, plus the three links and your source code. A screenshot of the deployed contract in Remix is optional.
On question 6c
Any real limitation counts. Some honest examples from this exact contract:
- anyone can call
setMessage— there is no permission check - the current message can be overwritten, while the transactions that changed it remain part of the chain's history
- this version has no upgrade mechanism, so fixing a bug would mean deploying a new version
- storing long text costs more gas than you would expect
You are not expected to find a clever exploit. You are expected to notice that your contract has limits, and to name one.
Submission checklist
Tick these items before submitting. Academy reviewers use the same criteria.
For reviewers: what Complete looks like
Verify that the deployment and explanation match — code quality and extra features are not part of this task.
| Item | Standard |
|---|---|
| 1–3 | All three open on Sepolia. The contract address matches the deployment transaction's created contract, and the write transaction targets that same address |
| 4 | Source is included and is consistent with your Guestbook and demonstrated behaviour. Exact source-to-bytecode verification is only expected if you verified the contract on Etherscan |
| 5 | Correctly identifies which is read, which is write, and names an event. A public state variable counts as a read function — that is correct, and worth acknowledging if they spot it |
| 6a | Names the actual state — the message, and ideally the visitor and count |
| 6b | Accurately describes the state change: message changes, lastVisitor changes, visitCount increments and the event is emitted where relevant. Gas and signature context is useful supporting understanding, but is not required unless the learner question asks for it |
| 6c | Any genuine limitation. Missing access control, immutability, public data, gas cost. Accept anything real |
Return for revision if: any link is broken, points to mainnet, or the addresses do not correspond; the submitted source clearly does not correspond to the demonstrated contract; question 5 confuses read and write; or 6b describes the write without any sense that state changed.
Do not return for revision for: using the Part 3 contract unmodified, a correct but unpolished answer, imperfect English, or not verifying the source on Etherscan, which is optional.
If a recovery phrase or private key appears
Do not share the evidence. Treat the wallet as compromised and use a fresh wallet for future testnet work. Do not repeat the phrase in notes or feedback.
If a reviewer requests revision
Revise means fix and resubmit, not fail
Use the feedback and table below to address the missing criterion, then resubmit through the Academy workflow. There is no deadline.
Common gaps at Week 3:
| What happened | The fix |
|---|---|
| The contract address and the deployment transaction do not match | On the explorer, open the deployment transaction and copy the address from its Created Contract field |
Question 5 calls a public variable "not a function" | It is a read function — Solidity generates one for you. Part 2, State tab |
| 6c says "it is secure" or leaves it blank | Every contract has limits. Start with: who is allowed to call your write function? |
Stuck on the deployment rather than the writing? Part 3 has a troubleshooting section. Check the error against the linked official documentation, and do not expose wallet secrets while seeking help elsewhere.
Changelog
f0652-docs(curriculum): migrate Academy to 10-week structure (#34)on5a3b0-refactor(academy): finalize two-track curriculum architectureona931f-docs(foundation): finalize beginner learning path and handbook UXon80d94-feat(foundation): complete Weeks 3-4 and add the visual layeronaed71-Bootstrap Blockchain@NTU Academy Handbookon