Add initial gas cost for CREATE
This commit is contained in:
parent
7ba1cfaf13
commit
6b1e989ff0
|
@ -168,7 +168,9 @@ template gasCosts(FeeSchedule: GasFeeSchedule, prefix, ResultGasCostsName: untyp
|
||||||
result += static(FeeSchedule[GasExpByte]) * (1 + log256(value))
|
result += static(FeeSchedule[GasExpByte]) * (1 + log256(value))
|
||||||
|
|
||||||
func `prefix gasCreate`(currentMemSize, memOffset, memLength: Natural): GasInt {.nimcall.} =
|
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.} =
|
func `prefix gasSha3`(currentMemSize, memOffset, memLength: Natural): GasInt {.nimcall.} =
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue