mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
b636ef881e
The value of keccak256(0, 32) should not be replaced by the big constant
13 lines
286 B
Solidity
13 lines
286 B
Solidity
// SPDX-License-Identifier: GPL-v3
|
|
pragma solidity >= 0.0.0;
|
|
|
|
contract C {
|
|
fallback() external {
|
|
assembly {
|
|
mstore(0, 100)
|
|
// because of the low runs value, the constant will not be optimized
|
|
sstore(0, keccak256(0, 32))
|
|
}
|
|
}
|
|
}
|