solidity/test/libyul/ewasmTranslationTests/smoke_create.yul
2019-12-10 17:00:45 +00:00

12 lines
288 B
Plaintext

{
let size := codesize()
codecopy(0, 0, size)
sstore(0, create(42, 0, size))
}
// ----
// Trace:
// Memory dump:
// 0: 0000000000000000000000000000000000000000000000000000000000000014
// 40: 636f6465636f6465636f6465636f6465636f6465000000000000000000000000
// Storage dump: