Skip to content

Commit

Permalink
Merge branch 'release/v0.18.x-astra' into astra
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
hoanguyenkh committed Aug 14, 2022
2 parents d49e40e + 1447418 commit c220c56
Show file tree
Hide file tree
Showing 17 changed files with 2,416 additions and 488 deletions.
2 changes: 1 addition & 1 deletion app/ante/eth.go
Expand Up @@ -193,7 +193,7 @@ func (egcd EthGasConsumeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
return ctx, sdkerrors.Wrap(err, "failed to unpack tx data")
}

if ctx.IsCheckTx() {
if ctx.IsCheckTx() && egcd.maxGasWanted != 0 {
// We can't trust the tx gas limit, because we'll refund the unused gas.
if txData.GetGas() > egcd.maxGasWanted {
gasWanted += egcd.maxGasWanted
Expand Down
2 changes: 1 addition & 1 deletion app/ante/eth_test.go
Expand Up @@ -279,7 +279,7 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() {
{
"success",
tx2,
config.DefaultMaxTxGasWanted, // it's capped
tx2GasLimit, // it's capped
func() {
vmdb.AddBalance(addr, big.NewInt(1000000))

Expand Down
9 changes: 4 additions & 5 deletions client/docs/statik/statik.go

Large diffs are not rendered by default.

0 comments on commit c220c56

Please sign in to comment.