mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
62028c90f0
Introduce writeMemory and read/writeBytes32/Address helpers. Fix read/writeU128/U256 to be little-endian. Update each instruction to follow the specification.
13 lines
535 B
Plaintext
13 lines
535 B
Plaintext
{
|
|
sstore(0, balance(address()))
|
|
sstore(1, balance(0))
|
|
}
|
|
// ----
|
|
// Trace:
|
|
// Memory dump:
|
|
// 0: 0000000000000000000000000000000000000000000000000000000000000001
|
|
// 20: 0000000000000000000000000000000022222222000000000000000000000000
|
|
// Storage dump:
|
|
// 0000000000000000000000000000000000000000000000000000000000000000: 0000000000000000000000000000000022222222000000000000000000000000
|
|
// 0000000000000000000000000000000000000000000000000000000000000001: 0000000000000000000000000000000022222222000000000000000000000000
|