aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-01-13 15:44:44 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-01-13 15:44:44 +0800
commit1818dffaecd544b4a5682c50960b2d57bd2e08c5 (patch)
treeb9d572da07fcff9e8ff0ed033d163078dfe5fb19
parent55c689722ad4b22e5cbe2170702b50f58a468cc9 (diff)
downloadgo-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.tar
go-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.tar.gz
go-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.tar.bz2
go-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.tar.lz
go-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.tar.xz
go-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.tar.zst
go-tangerine-1818dffaecd544b4a5682c50960b2d57bd2e08c5.zip
call to precompiled contract and balance
-rw-r--r--VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json53
-rw-r--r--VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json47
2 files changed, 100 insertions, 0 deletions
diff --git a/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json b/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json
new file mode 100644
index 000000000..d5ee2bbf3
--- /dev/null
+++ b/VMTests/RandomTests/201501122225CALL_TO_PRECOMPILED_GO.json
@@ -0,0 +1,53 @@
+{
+ "randomVMtest" : {
+ "callcreates" : [
+ {
+ "data" : "0x0000",
+ "destination" : "0000000000000000000000000000000000000002",
+ "gasLimit" : "0",
+ "value" : "1000000"
+ }
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "2",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x424345424245424335f15155",
+ "data" : "0x",
+ "gas" : "10000",
+ "gasPrice" : "100000000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "9668",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "999999999999000000",
+ "code" : "0x424345424245424335f15155",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x02"
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x424345424245424335f15155",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ }
+}
diff --git a/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json b/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json
new file mode 100644
index 000000000..1741d4a0f
--- /dev/null
+++ b/VMTests/RandomTests/201501122239BALANCE_OF_ADDRESS_GO.json
@@ -0,0 +1,47 @@
+{
+ "randomVMtest" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "2",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x434244424342303155",
+ "data" : "0x",
+ "gas" : "10000",
+ "gasPrice" : "100000000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "9673",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x434244424342303155",
+ "nonce" : "0",
+ "storage" : {
+ "0x0de0b6b3a7640000" : "0x02"
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x434244424342303155",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ }
+}