From 7aa5f69130cac3dc1c4b0fc69a1ac8180d5f7465 Mon Sep 17 00:00:00 2001 From: Jaynti Kanani <jdkanani@gmail.com> Date: Thu, 23 Jul 2020 19:41:21 +0530 Subject: [PATCH] fix: inputs for from and to addresses for transfer log --- core/state_transition.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state_transition.go b/core/state_transition.go index 7ce2feaf9..9c5620c3e 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -220,6 +220,9 @@ func (st *StateTransition) preCheck() error { // However if any consensus issue encountered, return the error directly with // nil evm execution result. func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { + input1 := st.state.GetBalance(st.msg.From()) + input2 := st.state.GetBalance(st.evm.Coinbase) + // First check this message satisfies all consensus rules before // applying the message. The rules include these clauses // @@ -235,9 +238,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { return nil, err } - input1 := st.state.GetBalance(st.msg.From()) - input2 := st.state.GetBalance(st.evm.Coinbase) - msg := st.msg sender := vm.AccountRef(msg.From()) homestead := st.evm.ChainConfig().IsHomestead(st.evm.BlockNumber) -- GitLab