Skip to content

Commit 24758ef

Browse files
authored
Merge pull request #1 from fivecut/main
chore: remove duplicate condition
2 parents 7ed01d8 + 4ff0e98 commit 24758ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/evm/keeper/grpc_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type
301301
} else {
302302
// Query block gas limit
303303
params := ctx.ConsensusParams()
304-
if params.Block != nil && params.Block != nil && params.Block.MaxGas > 0 {
304+
if params.Block != nil && params.Block.MaxGas > 0 {
305305
hi = uint64(params.Block.MaxGas)
306306
} else {
307307
hi = req.GasCap

0 commit comments

Comments
 (0)