From 03f68df6dfe4b8c907e1beeea806e737ce8fb0dd Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 27 Jul 2021 15:03:54 +0200 Subject: [PATCH] internal/ethapi: remove ineffassign --- internal/ethapi/api.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 8aabe465fc6b9..0b97c33e226a0 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1417,10 +1417,6 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH } // Copy the original db so we don't modify it statedb := db.Copy() - gasPrice := args.GasPrice.ToInt() - if gasPrice == nil { - gasPrice = new(big.Int) - } // Set the accesslist to the last al args.AccessList = &accessList msg, err := args.ToMessage(b.RPCGasCap(), header.BaseFee)