aboutsummaryrefslogtreecommitdiffstats
path: root/tests/state_test.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-11-27 22:40:29 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2016-02-18 17:08:11 +0800
commit371871d685d54b916aef28de689d6f0af7822083 (patch)
treee704b02ba2ffd2d1164001885fba15106b0f7d94 /tests/state_test.go
parentaa36a6ae4f24f07e2c470a21c93ff37ad5861982 (diff)
downloaddexon-371871d685d54b916aef28de689d6f0af7822083.tar.gz
dexon-371871d685d54b916aef28de689d6f0af7822083.tar.zst
dexon-371871d685d54b916aef28de689d6f0af7822083.zip
parmas, crypto, core, core/vm: homestead consensus protocol changes
* change gas cost for contract creating txs * invalidate signature with s value greater than secp256k1 N / 2 * OOG contract creation if not enough gas to store code * new difficulty adjustment algorithm * new DELEGATECALL op code
Diffstat (limited to 'tests/state_test.go')
-rw-r--r--tests/state_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/state_test.go b/tests/state_test.go
index 245f60597..e93d7d2dc 100644
--- a/tests/state_test.go
+++ b/tests/state_test.go
@@ -122,6 +122,27 @@ func TestCallCodes(t *testing.T) {
}
}
+func TestDelegateCall(t *testing.T) {
+ fn := filepath.Join(stateTestDir, "stDelegatecallTest.json")
+ if err := RunStateTest(fn, StateSkipTests); err != nil {
+ t.Error(err)
+ }
+}
+
+func TestDelegateCallCodes1(t *testing.T) {
+ fn := filepath.Join(stateTestDir, "stCallDelegateCodes.json")
+ if err := RunStateTest(fn, StateSkipTests); err != nil {
+ t.Error(err)
+ }
+}
+
+func TestDelegateCallCodes2(t *testing.T) {
+ fn := filepath.Join(stateTestDir, "stCallDelegateCodesCallCode.json")
+ if err := RunStateTest(fn, StateSkipTests); err != nil {
+ t.Error(err)
+ }
+}
+
func TestMemory(t *testing.T) {
fn := filepath.Join(stateTestDir, "stMemoryTest.json")
if err := RunStateTest(fn, StateSkipTests); err != nil {