fix: inputs for from and to addresses for transfer log

This commit is contained in:
Jaynti Kanani 2020-07-23 19:41:21 +05:30
parent 480d7ea99c
commit 7aa5f69130
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -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)