solidity/test/libyul/ewasmTranslationTests/gasprice.yul
Alex Beregszaszi 62028c90f0 [ewasm] Overhaul memory handling in EwasmInterpreter
Introduce writeMemory and read/writeBytes32/Address helpers.
Fix read/writeU128/U256 to be little-endian.
Update each instruction to follow the specification.
2020-10-28 11:57:18 +00:00

10 lines
291 B
Plaintext

{
sstore(0, gasprice())
}
// ----
// Trace:
// Memory dump:
// 20: 6666666600000000000000000000000000000000000000000000000000000000
// Storage dump:
// 0000000000000000000000000000000000000000000000000000000000000000: 6666666600000000000000000000000000000000000000000000000000000000