fix(evm): commit temporary state on precompile start, avoiding bug stemming from uncommitted, dirty journal entries in the EVM StateDB #2086
59.21% of diff hit (target 0.00%)
View this Pull Request on Codecov
59.21% of diff hit (target 0.00%)
Annotations
Check warning on line 79 in x/evm/errors.go
codecov / codecov/patch
x/evm/errors.go#L77-L79
Added lines #L77 - L79 were not covered by tests
Check warning on line 87 in x/evm/errors.go
codecov / codecov/patch
x/evm/errors.go#L81-L87
Added lines #L81 - L87 were not covered by tests
Check warning on line 106 in x/evm/evmtest/erc20.go
codecov / codecov/patch
x/evm/evmtest/erc20.go#L104-L106
Added lines #L104 - L106 were not covered by tests
Check warning on line 130 in x/evm/evmtest/tx.go
codecov / codecov/patch
x/evm/evmtest/tx.go#L128-L130
Added lines #L128 - L130 were not covered by tests
Check warning on line 170 in x/evm/evmtest/tx.go
codecov / codecov/patch
x/evm/evmtest/tx.go#L170
Added line #L170 was not covered by tests
Check warning on line 251 in x/evm/evmtest/tx.go
codecov / codecov/patch
x/evm/evmtest/tx.go#L249-L251
Added lines #L249 - L251 were not covered by tests
Check warning on line 257 in x/evm/evmtest/tx.go
codecov / codecov/patch
x/evm/evmtest/tx.go#L255-L257
Added lines #L255 - L257 were not covered by tests
Check warning on line 279 in x/evm/evmtest/tx.go
codecov / codecov/patch
x/evm/evmtest/tx.go#L279
Added line #L279 was not covered by tests
Check warning on line 291 in x/evm/evmtest/tx.go
codecov / codecov/patch
x/evm/evmtest/tx.go#L291
Added line #L291 was not covered by tests
Check warning on line 72 in x/evm/precompile/funtoken.go
codecov / codecov/patch
x/evm/precompile/funtoken.go#L71-L72
Added lines #L71 - L72 were not covered by tests
Check warning on line 75 in x/evm/precompile/funtoken.go
codecov / codecov/patch
x/evm/precompile/funtoken.go#L74-L75
Added lines #L74 - L75 were not covered by tests
Check warning on line 192 in x/evm/precompile/precompile.go
codecov / codecov/patch
x/evm/precompile/precompile.go#L191-L192
Added lines #L191 - L192 were not covered by tests
Check warning on line 198 in x/evm/precompile/precompile.go
codecov / codecov/patch
x/evm/precompile/precompile.go#L196-L198
Added lines #L196 - L198 were not covered by tests
Check warning on line 202 in x/evm/precompile/precompile.go
codecov / codecov/patch
x/evm/precompile/precompile.go#L201-L202
Added lines #L201 - L202 were not covered by tests
Check warning on line 68 in x/evm/precompile/wasm.go
codecov / codecov/patch
x/evm/precompile/wasm.go#L67-L68
Added lines #L67 - L68 were not covered by tests
Check warning on line 126 in x/evm/statedb/journal.go
codecov / codecov/patch
x/evm/statedb/journal.go#L121-L126
Added lines #L121 - L126 were not covered by tests
Check warning on line 131 in x/evm/statedb/journal.go
codecov / codecov/patch
x/evm/statedb/journal.go#L130-L131
Added lines #L130 - L131 were not covered by tests
Check warning on line 522 in x/evm/statedb/statedb.go
codecov / codecov/patch
x/evm/statedb/statedb.go#L515-L522
Added lines #L515 - L522 were not covered by tests
Check warning on line 543 in x/evm/statedb/statedb.go
codecov / codecov/patch
x/evm/statedb/statedb.go#L536-L543
Added lines #L536 - L543 were not covered by tests