From 6b1e989ff0db8ca65001efd7eb1bd63d3c904c37 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Thu, 8 Nov 2018 15:47:48 +0000 Subject: [PATCH] Add initial gas cost for CREATE --- nimbus/vm/interpreter/gas_costs.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nimbus/vm/interpreter/gas_costs.nim b/nimbus/vm/interpreter/gas_costs.nim index b79dbc588..f3943c18d 100644 --- a/nimbus/vm/interpreter/gas_costs.nim +++ b/nimbus/vm/interpreter/gas_costs.nim @@ -168,7 +168,9 @@ template gasCosts(FeeSchedule: GasFeeSchedule, prefix, ResultGasCostsName: untyp result += static(FeeSchedule[GasExpByte]) * (1 + log256(value)) func `prefix gasCreate`(currentMemSize, memOffset, memLength: Natural): GasInt {.nimcall.} = - result = static(FeeSchedule[GasCodeDeposit]) * memLength + result = + static(FeeSchedule[GasCreate]) + + static(FeeSchedule[GasCodeDeposit]) * memLength func `prefix gasSha3`(currentMemSize, memOffset, memLength: Natural): GasInt {.nimcall.} =