Fix regressions, use signum constructor for BigInteger

This commit is contained in:
Faiz Khan 2015-02-10 15:35:06 -06:00
parent 9f5678c769
commit 8d8b734859
2 changed files with 3 additions and 5 deletions

View File

@ -89,10 +89,10 @@ public class TestRunner {
coinbase,
ByteUtil.EMPTY_BYTE_ARRAY,
testCase.getEnv().getCurrentDifficulty(),
new BigInteger(testCase.getEnv().getCurrentNumber()).longValue(),
new BigInteger(testCase.getEnv().getCurrentGasLimit()).longValue(),
new BigInteger(1, testCase.getEnv().getCurrentNumber()).longValue(),
new BigInteger(1, testCase.getEnv().getCurrentGasLimit()).longValue(),
0L,
new BigInteger(testCase.getEnv().getCurrentTimestamp()).longValue(),
new BigInteger(1, testCase.getEnv().getCurrentTimestamp()).longValue(),
ByteUtil.ZERO_BYTE_ARRAY,
ByteUtil.ZERO_BYTE_ARRAY,
null, null);

View File

@ -26,8 +26,6 @@ public class GitHubStateTest {
public void runWithExcludedTest() throws ParseException {
Set<String> excluded = new HashSet<>();
String json = JSONReader.loadJSON("StateTests/stPreCompiledContracts.json");
GitHubJSONTestSuite.runGitHubJsonStateTest(json, excluded);
}