Token sale1. 题目
1.1 This token contract allows you to buy and sell tokens at an even exchange rate of 1 token per ether.
The contract starts off with a balance of 1 ether. See if you can take some ...
Predict the block hash1. 题目
1.1 题目: Guessing an 8-bit number is apparently too easy. This time, you need to predict the entire 256-bit block hash for a future block
1.2 源码:
12345678910111213141516...
Predict the future1. 题目
1.1 This time, you have to lock in your guess before the random number is generated. To give you a sporting chance, there are only ten possible answers.
Note that it is inde...
Guess the new number1. 题目
1.1 要求: The number is now generated on-demand when a guess is made
1.2 题目代码:
1234567891011121314151617181920pragma solidity ^0.4.21;contract GuessTheNewNumberChallenge ...
Guess the random number1. 题目
1.1 This time the number is generated based on a couple fairly random sources
1.2 题目代码:
1234567891011121314151617181920212223// SPDX-License-Identifier: MITpragma soli...
Guess the secret number1. 题目
1.1 Putting the answer in the code makes things a little too easy.
This time I’ve only stored the hash of the number. Good luck reversing a cryptographic hash!
1.2 题目代...
Guess the number1. 题目
I’m thinking of a number. All you have to do is guess it.
题目代码:
12345678910111213141516171819202122// SPDX-License-Identifier: MITpragma solidity ^0.4.21;contract GuessTheNum...
Deploy a contracttips: 宝藏博客1. 题目要求
1.1 To complete this challenge, you need to:
Install MetaMask.
Switch to the Ropsten test network.
Get some Ropsten ether. Clicking the “buy” button in MetaMask...