bluealloy/revm
在 GitHub 查看Refactor: migrate from call local refund to global journal refund
Open
#2,145 建立於 2025年3月5日
good first issue
倉庫指標
- Star
- (2,194 star)
- PR 合併指標
- (平均合併 1天 14小時) (30 天內合併 32 個 PR)
描述
Presently, refund is call local and returned back with the gas when the call is finished, this can result in negative refund being returned and is a unexpected value for tracing.
Having one global refund inside the journal would mitigate this, on the one hand, it will slighlty leak gas calc into journal that is database, but on other hand it (should) encapsulate any refund inside of it additionally removing negative refund case.