首先进入Solidity常用的IDE是在线编译环境remix.ethereum.org。
进入后点击文件树上的新建按钮,输入文件名和后缀新建文件。
代码本身没有难度,主要是适应下语言,环境和IDE。
pragma solidity >=0.7.0 < 0.9.0;
/*
You just land your new blockchain job to build smart contracts for an awesome DAO catching fire!
Immediately, your boss throws at your a scrip of code tons of bugs in it. She says,
'Hey you! Fix this code and get this smart contract running and help save our DApp from crashing!'
The clock is ticking and this is the perfect opportunity to prove your skills and show what you are made of.
Your assignment is to fix the code below full of syntax errors and get this contract successfully deployed on
the Ethereum network.
Good luck!
*/
contract learnFunctions {
function remoteControlOpen(bool closedDoor, bool openDoor ) public returns(bool) {}
uint a = 45;
function addfValues() public view returns (uint) {