From 99d22cde2f4a81ac243edfd2b7f5fc70a07dcf62 Mon Sep 17 00:00:00 2001 From: xermicus Date: Wed, 17 Apr 2024 12:48:19 +0200 Subject: [PATCH] provide Solidity source for mstore8 tests Signed-off-by: xermicus --- crates/integration/contracts/mStore8.sol | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 crates/integration/contracts/mStore8.sol diff --git a/crates/integration/contracts/mStore8.sol b/crates/integration/contracts/mStore8.sol new file mode 100644 index 0000000..27fae51 --- /dev/null +++ b/crates/integration/contracts/mStore8.sol @@ -0,0 +1,8 @@ +contract MStore8 { + function mStore8(uint value) public pure returns (uint256 word) { + assembly { + mstore8(0x80, value) + word := mload(0x80) + } + } +}