mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-23 00:18:01 +00:00
ea63991617
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
13 lines
247 B
Solidity
13 lines
247 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
contract MStore8 {
|
|
function mStore8(uint value) public pure returns (uint256 word) {
|
|
assembly {
|
|
mstore8(0x80, value)
|
|
word := mload(0x80)
|
|
}
|
|
}
|
|
}
|