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

14 lines
338 B
Plaintext

{
let size := codesize()
codecopy(0x40, 0, size)
sstore(0, create2(42, 0, size, 0x20))
}
// ====
// EVMVersion: >=constantinople
// ----
// Trace:
// Memory dump:
// 0: 0000000000000000000000000000000000000000000000000000000000000014
// 80: 636f6465636f6465636f6465636f6465636f6465000000000000000000000000
// Storage dump: