One place for the smart contract developer. This repo will have all the smart contract written in the remix ide .It contains all the source code with the screen shot.
MIT License
42
stars
55
forks
source link
Update lottery.sol: `block.difficulty` is deprecated #312
Actually, the use of block.difficulty has been deprecated since the VM version Paris. Now, block.prevrandao is used which returns a random number based on the beacon chain
✔️ Check List (Check all the applicable boxes)
[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.
🛠️ Fixes Issue
Actually, the use of
block.difficulty
has been deprecated since the VM version Paris. Now,block.prevrandao
is used which returns a random number based on the beacon chain✔️ Check List (Check all the applicable boxes)