Skip to content

Commit

Permalink
Merge pull request #51 from gsalgado/issue-50
Browse files Browse the repository at this point in the history
Check that msg.To() is not nil in GetVMEnv
  • Loading branch information
jpmsam authored Feb 13, 2017
2 parents 26bd41c + 566a727 commit e6282c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e6282c2

Please sign in to comment.