mirror of https://github.com/poanetwork/quorum.git
Check that msg.To() is not nil in GetVMEnv
Otherwise it will panic when msg is creating a contract. Closes: #50
This commit is contained in:
parent
2e5bfda900
commit
566a72744a
|
@ -102,7 +102,7 @@ func (b *EthApiBackend) GetVMEnv(ctx context.Context, msg core.Message, state et
|
|||
privateState = statedb.privateState
|
||||
)
|
||||
|
||||
if !privateState.Exist(*msg.To()) {
|
||||
if msg.To() != nil && !privateState.Exist(*msg.To()) {
|
||||
privateState = publicState
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue