mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
311 B
Solidity
19 lines
311 B
Solidity
|
// SPDX-License-Identifier: GPL-3.0
|
||
|
pragma solidity >=0.0.0;
|
||
|
|
||
|
contract C {
|
||
|
constructor() payable {
|
||
|
uint256 x = block.difficulty;
|
||
|
assembly {
|
||
|
sstore(0, x)
|
||
|
stop()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fallback() external payable {
|
||
|
assembly {
|
||
|
stop()
|
||
|
}
|
||
|
}
|
||
|
}
|