mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 18:28:01 +00:00
4a9b651235
No observable changes w.r.t. YUL compilation. - Mark solc v0.8.29 as the latest supported version - Add integration test for solc v0.8.29 specific feature - Use the latest version on CI - Drive-by fix linter complaints and a two types in the CI yaml files --------- Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> Signed-off-by: xermicus <cyrill@parity.io>
53 lines
1.0 KiB
Solidity
53 lines
1.0 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.29;
|
|
|
|
/* runner.json
|
|
{
|
|
"differential": true,
|
|
"actions": [
|
|
{
|
|
"Instantiate": {
|
|
"code": {
|
|
"Solidity": {
|
|
"contract": "LayoutAt"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Call": {
|
|
"dest": {
|
|
"Instantiated": 0
|
|
},
|
|
"data": "a7a0d537"
|
|
}
|
|
},
|
|
{
|
|
"Call": {
|
|
"dest": {
|
|
"Instantiated": 0
|
|
},
|
|
"data": "15393349"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
*/
|
|
|
|
contract LayoutAt layout at 0xDEADBEEF + 0xCAFEBABE {
|
|
uint[3] public something;
|
|
|
|
constructor() payable {
|
|
something[0] = 1337;
|
|
something[1] = 42;
|
|
something[2] = 69;
|
|
}
|
|
|
|
function slotOfSomething() public pure returns (uint ret) {
|
|
assembly {
|
|
ret := something.slot
|
|
}
|
|
}
|
|
}
|