Skip to content

core/vm: map ErrMaxInitCodeSizeExceeded to VM error code#35280

Open
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:error-code
Open

core/vm: map ErrMaxInitCodeSizeExceeded to VM error code#35280
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:error-code

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Add VMErrorCodeMaxInitCodeSizeExceeded for ErrMaxInitCodeSizeExceeded.
  • Map the error in vmErrorCodeFromErr so VMErrorFromErr no longer reports VMErrorCodeUnknown for initcode size violations.

Test plan

  • go test -short ./core/vm/

@cuiweixie cuiweixie requested a review from rjl493456442 as a code owner July 2, 2026 13:01
Comment thread core/vm/errors.go Outdated
ErrMaxInitCodeSizeExceeded was not mapped in vmErrorCodeFromErr, so
VMErrorFromErr reported VMErrorCodeUnknown for initcode size violations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants