Add also smoke tests for opcodes not part of Ewasm

This commit is contained in:
Alex Beregszaszi
2019-12-10 17:00:45 +00:00
parent 7f40ca5a8f
commit fbf946e493
5 changed files with 51 additions and 2 deletions
@@ -0,0 +1,9 @@
{
sstore(0, chainid())
}
// ====
// EVMVersion: >=istanbul
// ----
// Trace:
// Memory dump:
// Storage dump:
@@ -0,0 +1,10 @@
{
sstore(0, extcodehash(address()))
}
// ====
// EVMVersion: >=constantinople
// ----
// Trace:
// Memory dump:
// 0: 0000000000000000000000000000000011111111000000000000000000000000
// Storage dump:
@@ -0,0 +1,9 @@
{
sstore(0, selfbalance())
}
// ====
// EVMVersion: >=istanbul
// ----
// Trace:
// Memory dump:
// Storage dump:
@@ -0,0 +1,13 @@
{
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: