From d350f5c96a1fb253d2a271c96d2051eb311737f4 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Fri, 9 Dec 2016 17:17:42 +0300 Subject: upgrade eip158 to general tests --- .../stSolidityTest/TestStoreGasPricesFiller.json | 40 ++++++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) (limited to 'src/GeneralStateTestsFiller/stSolidityTest/TestStoreGasPricesFiller.json') diff --git a/src/GeneralStateTestsFiller/stSolidityTest/TestStoreGasPricesFiller.json b/src/GeneralStateTestsFiller/stSolidityTest/TestStoreGasPricesFiller.json index 6778918b4..06fb5ba5e 100644 --- a/src/GeneralStateTestsFiller/stSolidityTest/TestStoreGasPricesFiller.json +++ b/src/GeneralStateTestsFiller/stSolidityTest/TestStoreGasPricesFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : "Frontier", + "network" : ["ALL"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "storage" : { @@ -32,8 +32,42 @@ ], "pre" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "//" : "}\t\t\t\t\t\t\t\t", "balance" : "100000", + "//" : "contract main ", + "//" : "{ ", + "//" : " uint[32] m_gasUsed; ", + "//" : " int storage; ", + "//" : " function run() returns (bool) ", + "//" : " { ", + "//" : " uint startgas = msg.gas; ", + "//" : " ", + "//" : " storage = 1; //zero to non zero ", + "//" : " m_gasUsed[0] = startgas - msg.gas; ", + "//" : " startgas = msg.gas; ", + "//" : " ", + "//" : " storage = 2; //non zero to non zero ", + "//" : " m_gasUsed[1] = startgas - msg.gas; ", + "//" : " startgas = msg.gas; ", + "//" : " ", + "//" : " storage = 2; //non zero to same non zero ", + "//" : " m_gasUsed[2] = startgas - msg.gas; ", + "//" : " startgas = msg.gas; ", + "//" : " ", + "//" : " storage = 24784793845734; //non zero to huge non zero ", + "//" : " m_gasUsed[3] = startgas - msg.gas; ", + "//" : " startgas = msg.gas; ", + "//" : " ", + "//" : " storage = 2; //huge non zero to non zero ", + "//" : " m_gasUsed[4] = startgas - msg.gas; ", + "//" : " startgas = msg.gas; ", + "//" : " ", + "//" : " storage = 0; //non zero to zero ", + "//" : " m_gasUsed[5] = startgas - msg.gas; ", + "//" : " startgas = msg.gas; ", + "//" : " ", + "//" : " return true; ", + "//" : " } ", + "//" : "} ", "code" : "0x7c01000000000000000000000000000000000000000000000000000000006000350463c04062268114602d57005b6033603d565b8060005260206000f35b600060005a600160205590505a81036000555a600260205590505a81036001555a600260205590505a81036002555a65168aa8d53fe660205590505a81036003555a600260205590505a81036004555a600060205590505a81036005555a5060019291505056", "nonce" : "0", "storage" : { @@ -63,4 +97,4 @@ ] } } -} \ No newline at end of file +} -- cgit