Skip to content

Commit

Permalink
Add more tests for TXCREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Mar 12, 2024
1 parent 12a33b4 commit 33cf02c
Show file tree
Hide file tree
Showing 34 changed files with 1,540 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code_deployment_out_of_gas_f": {
"env": {
"currentBaseFee": "0x0",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Frontier": [
{
"hash": "0x3de3c9bcd37e12271d90c505ce635ceda88c5fc83dc34f811e9f87e60003e8d9",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0x656103e86000f36000526006601a6000f0600055",
"nonce": "0x0",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0x186a0"
],
"gasPrice": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code_deployment_out_of_gas_refund_f": {
"env": {
"currentBaseFee": "0x0",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Frontier": [
{
"hash": "0xa87af5224eeac3c0959b10038f29f0c0de8c1fe777fb576d4d2886e0ee70db08",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0x6f600160005560006000556103e86000f3600052601060106000f0600055",
"nonce": "0x0",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0x186a0"
],
"gasPrice": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code_deployment_out_of_gas_refund_tw": {
"env": {
"currentBaseFee": "0x0",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"EIP150": [
{
"hash": "0xc44313d931870fc1475365463c5a1f05b756034893e5cf15acce9a5a49d77063",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0x6f600160005560006000556113886000f3600052601060106000f0600055",
"nonce": "0x0",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"gasPrice": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code_deployment_out_of_gas_storage_f": {
"env": {
"currentBaseFee": "0x0",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Frontier": [
{
"hash": "0xf5426367c57793f75fe90bafe53c6bb714d1ce5f45bd5f9dbead0067d77f08d5",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0x6a60016000556103e86000f3600052600b60156000f0600055",
"nonce": "0x0",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0x186a0"
],
"gasPrice": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code_deployment_out_of_gas_storage_tw": {
"env": {
"currentBaseFee": "0x0",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"EIP150": [
{
"hash": "0xed835dc8cd8d834b5b9a3c2b024be80537dd2b4079c961bbb4536f8f3720fa12",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0x6a60016000556113886000f3600052600b60156000f0600055",
"nonce": "0x0",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"gasPrice": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code_deployment_out_of_gas_tw": {
"env": {
"currentBaseFee": "0x0",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"EIP150": [
{
"hash": "0xe2c454f8f9257c3f9167b326c4d1d81336ca3d703a16a392dbd6f6a30c06600a",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0x656113886000f36000526006601a6000f0600055",
"nonce": "0x0",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"gasPrice": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
55 changes: 55 additions & 0 deletions EIPTests/StateTests/stEOF/stCreate/eofcreate_nested_txcreate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"eofcreate_nested_txcreate": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0xd5d36e8be3dd3c8bcbeebfe9fb2742e8ee363594170445cfb4c259e78c217a50",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef0001010004020001000e030001006204000000008000046000600060ff6000ec0060005500ef00010100040200010033030001001704000000008000056000600060ff60007f7dd880e30a6a808a30b4d3ca7a9f181c14f419888af75cdfce44ea85c0f3f8e7ed60005560006000ee00ef000101000402000100010400030000800000feabcdef",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x3e8",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Loading

0 comments on commit 33cf02c

Please sign in to comment.