mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 19:38:01 +00:00
39d78179d4
Signed-off-by: xermicus <cyrill@parity.io>
15 lines
319 B
Solidity
15 lines
319 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
contract Storage {
|
|
function transient(uint value) public returns (uint ret) {
|
|
assembly {
|
|
let slot := 123
|
|
tstore(slot, value)
|
|
let success := call(0, 0, 0, 0, 0, 0, 0)
|
|
ret := tload(slot)
|
|
}
|
|
}
|
|
}
|