core: check private state for to existance first

This commit is contained in:
Bas van Kervel 2016-11-17 15:06:32 +01:00
parent a84c31ce76
commit 2ea7af01c4
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func (b *EthApiBackend) GetVMEnv(ctx context.Context, msg core.Message, state et
privateState = statedb.privateState
)
if publicState.Exist(*msg.To()) {
if !privateState.Exist(*msg.To()) {
privateState = publicState
}