From 04d2de9119a69a2ea13689d7b6bb2dda386b8e5e Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Sun, 4 Jun 2017 12:30:02 +0100 Subject: core: Fix VM error logging Signed-off-by: Lewis Marshall --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/state_transition.go b/core/state_transition.go index 21830e806..0ae9d7fcb 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -243,7 +243,7 @@ func (st *StateTransition) TransitionDb() (ret []byte, requiredGas, usedGas *big ret, st.gas, vmerr = evm.Call(sender, st.to().Address(), st.data, st.gas, st.value) } if vmerr != nil { - log.Debug("VM returned with error", "err", err) + log.Debug("VM returned with error", "err", vmerr) // The only possible consensus-error would be if there wasn't // sufficient balance to make the transfer happen. The first // balance transfer may never fail. -- cgit