Explorar o código

core: Fix VM error logging

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Lewis Marshall %!s(int64=8) %!d(string=hai) anos
pai
achega
04d2de9119
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/state_transition.go

+ 1 - 1
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.