From 995310c2a91c23a6046b343d60a7c54125577f55 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Tue, 17 Sep 2024 16:48:49 -0600 Subject: [PATCH] Update core/state_transition.go Co-authored-by: Marius van der Wijden --- core/state_transition.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index 03e4250688..c42b47d50c 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -515,7 +515,8 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { ret, _, st.gasRemaining, vmerr = st.evm.Create(sender, msg.Data, st.gasRemaining, value, rules.IsPrague) // Special case for EOF, if the initcode or deployed code is // invalid, the tx is considered valid (so update nonce), but - // is to be treated as an exceptional abort (so burn all gas). + // gas for initcode execution is not consumed. + // Only intrinsic creation transaction costs are charged. if errors.Is(vmerr, vm.ErrInvalidEOFInitcode) { st.state.SetNonce(msg.From, st.state.GetNonce(sender.Address())+1) }