Merge pull request #8136 from imapp-pl/polyfill-mstore8

mstore8 polyfill
This commit is contained in:
chriseth
2020-01-15 17:02:40 +01:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
@@ -1,15 +1,15 @@
{
mstore(0x30, not(0))
mstore8(0x20, 0xaa)
mstore8(0x25, 0xbbbb)
mstore8(0x26, 0xcc)
mstore8(0x3b, 0x11)
sstore(0, mload(0x20))
}
// ----
// Trace:
// INVALID()
// Memory dump:
// 60: 00000000000000000000000000000000ffffffffffffffffffffffffffffffff
// 20: aa0000000000cc000000000000000000ffffffffffffffffffffff11ffffffff
// 60: aa0000000000cc000000000000000000ffffffffffffffffffffff11ffffffff
// 80: ffffffffffffffffffffffffffffffff00000000000000000000000000000000
// Storage dump:
// 0000000000000000000000000000000000000000000000000000000000000000: aa0000000000cc000000000000000000ffffffffffffffffffffff11ffffffff