ante, evm: update gas consumption logic (#178)

* clean up logic by ignoring cosmos gas meter

* set gas used in txResponse

* reset and set the gas in context

* rename ante handler

* fix refundedgas logic

* remove gas update logic in keeper

* update context in keeper

* add test for EthSetupContextDecorator

* fix broken test due to gas logic change
This commit is contained in:
Thomas Nguy
2021-06-30 05:31:30 -04:00
committed by GitHub
parent 036ffb7a39
commit 5ba8ffe669
8 changed files with 169 additions and 165 deletions
+2
View File
@@ -52,4 +52,6 @@ message MsgEthereumTxResponse {
bytes ret = 3;
// reverted flag is set to true when the call has been reverted
bool reverted = 4;
// gas consumed by the transaction
uint64 gas_used = 5;
}