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
Return result and gasConsumed (or GasInfo) when using ctx.QueryWithData("/app/simulate", txBytes) instead of only gasConsumed.
Problem Definition
#5421 refactored error handling and query logic around tx simulation. In particular handleQueryApp in the "simulate" was changed to return the gas consumed from the simulation instead of the sdk.Result.
Thi change broke one of the Web3 RPC calls, eth_Call, which executes a call without performing a state transition (i.e just like SDK simulation).
Ethermint needs the sdk.Result from this execution in order to unmarshal the result Data.
Proposal
Update handle query app to return sdk.Result and GasInfo by introducing a new type SimulationResponse:
Summary
Return
result
andgasConsumed
(orGasInfo
) when usingctx.QueryWithData("/app/simulate", txBytes)
instead of only gasConsumed.Problem Definition
#5421 refactored error handling and query logic around tx simulation. In particular
handleQueryApp
in the"simulate"
was changed to return the gas consumed from the simulation instead of thesdk.Result
.Thi change broke one of the Web3 RPC calls,
eth_Call
, which executes a call without performing a state transition (i.e just like SDK simulation).Ethermint needs the
sdk.Result
from this execution in order to unmarshal the resultData
.Proposal
Update handle query app to return
sdk.Result
andGasInfo
by introducing a new typeSimulationResponse
:cc: @austinabell @alexanderbez
For Admin Use
The text was updated successfully, but these errors were encountered: