aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json')
-rw-r--r--src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json86
1 files changed, 43 insertions, 43 deletions
diff --git a/src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json b/src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json
index 66fe584ca..7c4d51b28 100644
--- a/src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json
+++ b/src/GeneralStateTestsFiller/stSolidityTest/TestBlockAndTransactionPropertiesFiller.json
@@ -28,49 +28,49 @@
"pre" : {
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "100000",
- "//comment1" : "contract main",
- "//comment2" : "{",
- "//comment3" : " bool returnValue;",
- "//comment4" : " function run() returns (bool)",
- "//comment5" : " {",
- "//comment6" : " returnValue = testBlockAndTransactionProperties();",
- "//comment7" : " return returnValue;",
- "//comment8" : " }",
- "//comment9" : "",
- "//comment10" : " function testBlockAndTransactionProperties() returns (bool res)",
- "//comment11" : " {",
- "//comment12" : " res = true;",
- "//comment13" : " if (block.coinbase != 0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba)",
- "//comment14" : " return false;",
- "//comment15" : "",
- "//comment16" : " if (block.difficulty != 45678256)",
- "//comment17" : " return false;",
- "//comment18" : "",
- "//comment19" : " if (block.gaslimit != 0x7fffffffffffffff)",
- "//comment20" : " return false;",
- "//comment21" : "",
- "//comment22" : " if (block.number != 120)",
- "//comment23" : " return false;",
- "//comment24" : "",
- "//comment25" : " //try to call this",
- "//comment26" : " block.blockhash(120);",
- "//comment27" : " block.timestamp;",
- "//comment28" : " msg.gas;",
- "//comment29" : "",
- "//comment30" : " if (msg.sender != 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b)",
- "//comment31" : " return false;",
- "//comment32" : "",
- "//comment33" : " if (msg.value != 100)",
- "//comment34" : " return false;",
- "//comment35" : "",
- "//comment36" : " if (tx.gasprice != 1)",
- "//comment37" : " return false;",
- "//comment38" : "",
- "//comment39" : " if (tx.origin != 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b)",
- "//comment40" : " return false;",
- "//comment41" : "",
- "//comment42" : " }",
- "//comment43" : "}",
+ "//comment1" : "contract main",
+ "//comment2" : "{",
+ "//comment3" : " bool returnValue;",
+ "//comment4" : " function run() returns (bool)",
+ "//comment5" : " {",
+ "//comment6" : " returnValue = testBlockAndTransactionProperties();",
+ "//comment7" : " return returnValue;",
+ "//comment8" : " }",
+ "//comment9" : "",
+ "//comment10" : " function testBlockAndTransactionProperties() returns (bool res)",
+ "//comment11" : " {",
+ "//comment12" : " res = true;",
+ "//comment13" : " if (block.coinbase != 0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba)",
+ "//comment14" : " return false;",
+ "//comment15" : "",
+ "//comment16" : " if (block.difficulty != 45678256)",
+ "//comment17" : " return false;",
+ "//comment18" : "",
+ "//comment19" : " if (block.gaslimit != 0x7fffffffffffffff)",
+ "//comment20" : " return false;",
+ "//comment21" : "",
+ "//comment22" : " if (block.number != 120)",
+ "//comment23" : " return false;",
+ "//comment24" : "",
+ "//comment25" : " //try to call this",
+ "//comment26" : " block.blockhash(120);",
+ "//comment27" : " block.timestamp;",
+ "//comment28" : " msg.gas;",
+ "//comment29" : "",
+ "//comment30" : " if (msg.sender != 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b)",
+ "//comment31" : " return false;",
+ "//comment32" : "",
+ "//comment33" : " if (msg.value != 100)",
+ "//comment34" : " return false;",
+ "//comment35" : "",
+ "//comment36" : " if (tx.gasprice != 1)",
+ "//comment37" : " return false;",
+ "//comment38" : "",
+ "//comment39" : " if (tx.origin != 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b)",
+ "//comment40" : " return false;",
+ "//comment41" : "",
+ "//comment42" : " }",
+ "//comment43" : "}",
"code" : "0x60606040526000357c010000000000000000000000000000000000000000000000000000000090048063c040622614610044578063e97384dc1461006957610042565b005b610051600480505061008e565b60405180821515815260200191505060405180910390f35b61007660048050506100c9565b60405180821515815260200191505060405180910390f35b60006100986100c9565b600060006101000a81548160ff02191690830217905550600060009054906101000a900460ff1690506100c6565b90565b6000600190508050732adc25665018aa1fe0e6bc666dac8fc2697ff9ba4173ffffffffffffffffffffffffffffffffffffffff1614151561010d57600090506101f7565b6302b8feb04414151561012357600090506101f7565b677fffffffffffffff4514151561013d57600090506101f7565b60784314151561015057600090506101f7565b6078405042505a5073a94f5374fce5edbc8e2a8697c15331677e6ebf0b3373ffffffffffffffffffffffffffffffffffffffff1614151561019457600090506101f7565b6064341415156101a757600090506101f7565b60013a1415156101ba57600090506101f7565b73a94f5374fce5edbc8e2a8697c15331677e6ebf0b3273ffffffffffffffffffffffffffffffffffffffff161415156101f657600090506101f7565b5b9056",
"nonce" : "0",
"storage" : {