-
Notifications
You must be signed in to change notification settings - Fork 147
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: write failed evm receipts after execution, rather than at the end of block #2525
fix: write failed evm receipts after execution, rather than at the end of block #2525
Conversation
5ac341b
to
5cea1c0
Compare
5cea1c0
to
8d7246b
Compare
@dessaya pushed an update where the ISC dependency is removed from While I understand the wish to keep both layers separated, they are already connected in the sense that we pass functions like |
8d7246b
to
5bd157a
Compare
Yes, I agree. But still, I think it's beneficial to keep this separation, as it makes the emulator easier to test in isolation. |
// chargeISCGas will keep gasBurnEnabled = false and mutate `result` when charging ISC gas fails | ||
if chargeISCGas != nil { | ||
gasUsed, iscGasErr = chargeISCGas(result) | ||
} else { | ||
gasUsed = result.UsedGas | ||
} |
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.
wasp/packages/vm/core/evm/evmimpl/iscmagic.go
Line 110 in a302676
return ret, gas, executionErr |
Maybe it's possible to obtain the same result by modifying the logic there so that it deducts the gas for each ISC call automatically.
But we can do that in a separate PR.
5bd157a
to
0847f4a
Compare
No description provided.