mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-13 12:16:23 +00:00
Create origin/caller in test before executing
This commit is contained in:
parent
24f849e6ec
commit
ee442c4e34
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user