Vikash-8090-Yadav / Solidity-Pathshala

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

Open 0xScratch opened 12 months ago

0xScratch commented 12 months ago

🛠️ 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)

github-actions[bot] commented 12 months ago

Our team will soon review your PR. Thanks @Aryan9592 :)