argotorg / argotorg/solidity

Drop support to `block.difficulty` in Solidity 0.9.0

Open
#13,886 1 comment 1 reaction 0 assignees View on GitHub
breaking change :warning: low effort low impact must have eventually
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
2d 19h
Merged PRs (30d)
29

Description

`block.difficulty` was deprecated in https://github.com/ethereum/solidity/pull/13759 and we should completely remove it in favor of `block.prevrandao`.

Contributor guide

Open the contributing guide

Research direction

Search the repository for block.difficulty and block.prevrandao, then inspect the matching compiler implementation and tests. Done means Solidity 0.9.0 no longer supports block.difficulty in favor of block.prevrandao, with relevant tests updated to cover the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, solidity
Domain
blockchain, compilers
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.