From 8f1afef5fb319e8783f4eee31ad4e64fdfc95cc0 Mon Sep 17 00:00:00 2001 From: Ali Atiia <42751398+aliatiia@users.noreply.github.com> Date: Fri, 28 Feb 2020 17:49:07 -0500 Subject: [PATCH] correct func name `callGas` should be `calcGas` as in the comment --- core/vm/gas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/gas.go b/core/vm/gas.go index bd8b4f1042..0279562e76 100644 --- a/core/vm/gas.go +++ b/core/vm/gas.go @@ -34,7 +34,7 @@ const ( // // The cost of gas was changed during the homestead price change HF. // As part of EIP 150 (TangerineWhistle), the returned gas is gas - base * 63 / 64. -func callGas(isEip150 bool, availableGas, base uint64, callCost *big.Int) (uint64, error) { +func calcGas(isEip150 bool, availableGas, base uint64, callCost *big.Int) (uint64, error) { if isEip150 { availableGas = availableGas - base gas := availableGas - availableGas/64