You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up of #13942. To include the 3 cases for PostHandler in runTx.
Problem Definition
In order to fully support stateful precompiled contracts on Evmos (and other EVM chains using Ethermint), we need to migrate the leftover gas refund logic to the PostHandler. After the runMsg success bool was included - #13940 and additional change to runTx is required to cover the 3 cases for the PostHandler
When the tx errors and the PostHandler is not set.
When the tx errors and the PostHandler is set
When the tx is successful and the PostHandler is set.
Proposal
The PostHandler is not set and the tx errors so return the err
The tx errors and the PostHandler is set so run the Posthandler with runMsgCtx so that the state from runMsgs is persisted.
The tx is successful and the PostHandler is set so run the Posthandler with runMsgCtx so that the state from runMsgs is persisted.
The text was updated successfully, but these errors were encountered:
Summary
This is a follow up of #13942. To include the 3 cases for
PostHandler
inrunTx
.Problem Definition
In order to fully support stateful precompiled contracts on Evmos (and other EVM chains using Ethermint), we need to migrate the leftover gas refund logic to the
PostHandler
. After therunMsg
success bool was included - #13940 and additional change torunTx
is required to cover the 3 cases for thePostHandler
PostHandler
is not set.PostHandler
is setPostHandler
is set.Proposal
PostHandler
is not set and the tx errors so return theerr
PostHandler
is set so run thePosthandler
withrunMsgCtx
so that the state fromrunMsgs
is persisted.PostHandler
is set so run thePosthandler
withrunMsgCtx
so that the state fromrunMsgs
is persisted.The text was updated successfully, but these errors were encountered: