Skip to content

Commit

Permalink
Merge pull request #192 from celestiaorg/evan/pass-gas-used
Browse files Browse the repository at this point in the history
fix: Pass gas used and gas wanted to delivertx/checktx responses
  • Loading branch information
evan-forbes committed Jun 14, 2022
2 parents 60b0ac1 + b762726 commit 2d2e260
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,12 @@ func convertTxResponseToCheckTx(txRes tx.Response, checkRes tx.ResponseCheckTx)
}

return abci.ResponseCheckTx{
Data: data,
Log: txRes.Log,
Events: txRes.Events,
Priority: checkRes.Priority,
Data: data,
Log: txRes.Log,
Events: txRes.Events,
Priority: checkRes.Priority,
GasUsed: int64(txRes.GasUsed),
GasWanted: int64(txRes.GasWanted),
}, nil
}

Expand All @@ -937,8 +939,10 @@ func convertTxResponseToDeliverTx(txRes tx.Response) (abci.ResponseDeliverTx, er
}

return abci.ResponseDeliverTx{
Data: data,
Log: txRes.Log,
Events: txRes.Events,
Data: data,
Log: txRes.Log,
Events: txRes.Events,
GasUsed: int64(txRes.GasUsed),
GasWanted: int64(txRes.GasWanted),
}, nil
}

0 comments on commit 2d2e260

Please sign in to comment.