aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stCreateTest
diff options
context:
space:
mode:
authorJose Hugo De la cruz Romero <jhugodc@gmail.com>2018-01-03 06:33:08 +0800
committerJose Hugo De la cruz Romero <jhugodc@gmail.com>2018-01-03 06:33:08 +0800
commit441935737e14ec3341f3b8d8949f5fb8dccaa2bf (patch)
treece58564c2361c431fa05c157a62814cd82175dc0 /src/GeneralStateTestsFiller/stCreateTest
parentc4b6a76db2da717a997e2036accbe47a9e0f9b3a (diff)
downloadtangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.tar
tangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.tar.gz
tangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.tar.bz2
tangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.tar.lz
tangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.tar.xz
tangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.tar.zst
tangerine-tests-441935737e14ec3341f3b8d8949f5fb8dccaa2bf.zip
use yml format, correct order in data comments
Diffstat (limited to 'src/GeneralStateTestsFiller/stCreateTest')
-rw-r--r--src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.json44
-rw-r--r--src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml35
2 files changed, 35 insertions, 44 deletions
diff --git a/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.json b/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.json
deleted file mode 100644
index 08b0e0b00..000000000
--- a/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "CREATE_ContractRETURNBigOffset" : {
- "env" : {
- "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
- "currentDifficulty" : "0x020000",
- "currentGasLimit" : "89128960",
- "currentNumber" : "1",
- "currentTimestamp" : "1000",
- "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
- },
- "pre" :
- {
- "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
- "balance" : "100000000000",
- "code" : "",
- "nonce" : "0",
- "storage" : {
- }
- }
- },
- "transaction" : {
- "//data" : "{ (RETURN 0x074ac2 0x0d15bc) }",
- "//data" : "{ (RETURN 0x074ac2 0x010000) }",
- "//data" : "{ (RETURN 0x074ac2 0x051eb9) }",
- "//data" : "{ (RETURN 0x074ac2 0x051eb8) }",
- "data" : [
- "0x6201000062074ac2f3",
- "0x62051eb862074ac2f3",
- "0x62051eb962074ac2f3",
- "0x620d15bc62074ac2f3"
- ],
- "gasLimit" : [
- "0x5000001"
- ],
- "gasPrice" : "0x02",
- "nonce" : "0x00",
- "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
- "to" : "",
- "value" : [
- "0"
- ]
- }
- }
-}
diff --git a/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml b/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml
new file mode 100644
index 000000000..71c67743e
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stCreateTest/CREATE_ContractRETURNBigOffsetFiller.yml
@@ -0,0 +1,35 @@
+# Use return with big offset, causes BN error in ethereumjs-vm
+---
+CREATE_ContractRETURNBigOffset:
+ env:
+ currentCoinbase: 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba
+ currentDifficulty: '0x020000'
+ currentGasLimit: '89128960'
+ currentNumber: '1'
+ currentTimestamp: '1000'
+ previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6
+ pre:
+ a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
+ balance: '100000000000'
+ code: ''
+ nonce: ''
+ storage: {}
+ transaction:
+ data:
+ #- { (RETURN 0x074ac2 0x010000) }
+ #- { (RETURN 0x074ac2 0x051eb8) }
+ #- { (RETURN 0x074ac2 0x051eb9) }
+ #- { (RETURN 0x074ac2 0x0d15bc) }
+ - '0x6201000062074ac2f3'
+ - '0x62051eb862074ac2f3'
+ - '0x62051eb962074ac2f3'
+ - '0x620d15bc62074ac2f3'
+ gasLimit:
+ - '0x5000001'
+ gasPrice: '0x02'
+ nonce: '0x00'
+ secretKey: 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8
+ to: ''
+ value:
+ - '0'
+