Create origin/caller in test before executing

This commit is contained in:
nicksavers 2014-10-15 01:54:27 +02:00
parent 24f849e6ec
commit ee442c4e34
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ public class TestRunner {
byte[] difficulty = env.getCurrentDifficlty();
long gaslimit = new BigInteger(env.getCurrentGasLimit()).longValue();
// Origin and caller need to exist in order to be able to execute
repository.createAccount(origin);
repository.createAccount(caller);
ProgramInvoke programInvoke = new ProgramInvokeImpl(address, origin, caller, balance,
gasPrice, gas, callValue, msgData, lastHash, coinbase,
timestamp, number, difficulty, gaslimit, repository, true);