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

19 lines
351 B
Solidity

// SPDX-License-Identifier: MIT
contract MSize {
uint[] public data;
function mSize() public pure returns (uint size) {
assembly {
size := msize()
}
}
function mStore100() public pure returns (uint size) {
assembly {
mstore(100, msize())
size := msize()
}
}
}