https://github.com/kyrers
In this post, I will share my explanations for the Warmup section of the Capture The Ether challenges. There are plenty of solutions around the web - my goal was to solve the challenges locally, avoiding Etherscan when possible, and writing code locally.
You can find the code here.
Let’s begin.
Call Me and Set Nickname are very similar, so there is code only for the more complex one - Set Nickname. In the code, you will find the script setNickname.js. The code has comments explaining what each line does. Still, here is what we need to do:
Get the contract abi and address;
Get the private key of the ropsten account you are using to interact with Capture The Ether. Otherwise, you can't pass the challenge as CTE doesn't know who you are;
Get the contract and connect with it using your account;
Call the setNickname(…) function sending the nickname you want as a parameter; For the Call Me challenge, it's even easier, as the function requires no parameters.
In this post, I will share my explanations for the Warmup section of the Capture The Ether challenges. There are plenty of solutions around the web - my goal was to solve the challenges locally, avoiding Etherscan when possible, and writing code locally.
You can find the code here.
Let’s begin.
Call Me and Set Nickname are very similar, so there is code only for the more complex one - Set Nickname. In the code, you will find the script setNickname.js. The code has comments explaining what each line does. Still, here is what we need to do:
Get the contract abi and address;
Get the private key of the ropsten account you are using to interact with Capture The Ether. Otherwise, you can't pass the challenge as CTE doesn't know who you are;
Get the contract and connect with it using your account;
Call the setNickname(…) function sending the nickname you want as a parameter; For the Call Me challenge, it's even easier, as the function requires no parameters.
https://github.com/kyrers
Share Dialog
Share Dialog

Subscribe to kyrers

Subscribe to kyrers
<100 subscribers
<100 subscribers
No activity yet