Files
revive/crates/integration/contracts/mStore8.sol
T
2024-04-18 12:30:09 +02:00

11 lines
224 B
Solidity

// SPDX-License-Identifier: MIT
contract MStore8 {
function mStore8(uint value) public pure returns (uint256 word) {
assembly {
mstore8(0x80, value)
word := mload(0x80)
}
}
}