core: fix a bug in state transition

pull/30511/head
Marius van der Wijden 5 months ago
parent ce4a1c51ad
commit 55e2e277bf
  1. 5
      core/state_transition.go

@ -441,6 +441,11 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
// - reset transient storage(eip 1153)
st.state.Prepare(rules, msg.From, st.evm.Context.Coinbase, msg.To, vm.ActivePrecompiles(rules), msg.AccessList)
if !contractCreation {
// Increment the nonce for the next transaction
st.state.SetNonce(msg.From, st.state.GetNonce(sender.Address())+1)
}
var (
ret []byte
vmerr error // vm errors do not effect consensus and are therefore not assigned to err

Loading…
Cancel
Save