2019-04-30 13:02:52 +00:00
|
|
|
object "main"
|
|
|
|
{
|
|
|
|
code {
|
2019-05-23 10:01:02 +00:00
|
|
|
datacopy(0, and(dataoffset("main"), 15), and(datasize("main"), 15))
|
|
|
|
datacopy(32, and(dataoffset("sub"), 15), and(datasize("sub"), 15))
|
2019-04-30 13:02:52 +00:00
|
|
|
sstore(0, mload(0))
|
|
|
|
sstore(1, mload(32))
|
|
|
|
}
|
|
|
|
object "sub" { code { sstore(0, 1) } }
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Trace:
|
|
|
|
// Memory dump:
|
2019-05-23 10:01:02 +00:00
|
|
|
// 0: 6465636f00000000000000000000000000000000000000000000000000000000
|
|
|
|
// 20: 636f6465636f6465000000000000000000000000000000000000000000000000
|
2019-04-30 13:02:52 +00:00
|
|
|
// Storage dump:
|
2019-05-23 10:01:02 +00:00
|
|
|
// 0000000000000000000000000000000000000000000000000000000000000000: 6465636f00000000000000000000000000000000000000000000000000000000
|
|
|
|
// 0000000000000000000000000000000000000000000000000000000000000001: 636f6465636f6465000000000000000000000000000000000000000000000000
|