-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: static state change error #4499
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Wodann ! Added one comment, otherwise I'd defer to @fvictorio on the review of this.
packages/hardhat-core/src/internal/hardhat-network/provider/vm/exit.ts
Outdated
Show resolved
Hide resolved
packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-tracer.ts
Outdated
Show resolved
Hide resolved
}; | ||
} else { | ||
const vmError = Exit.fromEthereumJSEvmError( | ||
// Override the exceptional halt reason with the one from the EVM result, to avoid lossy casting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand this. The idea is to avoid converting it twice? Is that the lossy part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, not all EvmError
s can be represented as an ExitCode
, so we bypass the lossy conversion
…s/vm-tracer.ts Co-authored-by: Franco Victorio <[email protected]>
0a5e37a
to
9436474
Compare
No description provided.