implement msize opcode

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-03-26 12:03:28 +01:00
parent 69800ae1b3
commit 17832855e0
4 changed files with 88 additions and 6 deletions
+9
View File
@@ -0,0 +1,9 @@
contract MSize {
uint[] public data;
function mSize() public pure returns (uint size) {
assembly {
size := msize()
}
}
}