Skip to content

Commit

Permalink
Add changeing self balance test
Browse files Browse the repository at this point in the history
  • Loading branch information
shemnon committed Aug 23, 2019
1 parent 413c191 commit f374fc7
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
64 changes: 64 additions & 0 deletions GeneralStateTests/stSelfBalance/selfBalanceUpdate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"selfBalanceUpdate" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "Geth-1.9.3-unstable-cc9eb91d-20190823",
"filling-tool-version" : "retesteth-0.0.1+commit.e7eb725f.Darwin.appleclang",
"lllcversion" : "Version: 0.5.0-develop.2019.8.6+commit.9709dfe0.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stSelfBalance/selfBalanceUpdateFiller.json",
"sourceHash" : "97f5c0e3a48c072de32e0d408a64262c5a09064c8681313c03233b23fc1059cf"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0x02540be400",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Istanbul" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0x31e3e6c8fa0060221ef16232aedb74890cab1e6cc385736629629d9f7e5ab121",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x1000000000000000000000000000000000000000" : {
"balance" : "0x01f4",
"code" : "0x47806001556000600060006000600160006000f15047806002559003600355",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x3635c9adc5dea00000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x"
],
"gasLimit" : [
"0x05f5e100"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x1000000000000000000000000000000000000000",
"value" : [
"0x00"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"selfBalanceUpdate": {
"env": {
"currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x20000",
"currentGasLimit": "10000000000",
"currentNumber": "1",
"currentTimestamp": "1000",
"previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"expect": [
{
"indexes": {
"data": -1,
"gas": -1,
"value": -1
},
"network": [">=Istanbul"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01f4",
"0x02": "0x01f3",
"0x03": "0x01"
}
}
}
}
],
"pre": {
"1000000000000000000000000000000000000000": {
"balance": "0x01f4",
"//code": "(asm SELFBALANCE DUP1 1 SSTORE 0 0 0 0 1 0 0 CALL POP SELFBALANCE DUP1 2 SSTORE SWAP1 SUB 3 SSTORE)",
"code" : "0x47806001556000600060006000600160006000f15047806002559003600355",
"nonce": "0",
"storage": {}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"balance": "1000000000000000000000",
"code": "",
"nonce": "0",
"storage": {}
}
},
"transaction": {
"data": ["0x"],
"gasLimit": ["100000000"],
"gasPrice": "1",
"nonce": "0",
"secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to": "1000000000000000000000000000000000000000",
"value": ["0"]
}
}
}

0 comments on commit f374fc7

Please sign in to comment.