Skip to content

Commit fbcc103

Browse files
committed
core/vm: fix gas accounting
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent 6c66c64 commit fbcc103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/interpreter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
179179
logged, pcCopy, gasCopy = false, pc, contract.Gas
180180
}
181181

182-
if in.evm.chainRules.IsCancun {
182+
if in.evm.chainRules.IsCancun && !contract.IsDeployment {
183183
// if the PC ends up in a new "chunk" of verkleized code, charge the
184184
// associated costs.
185185
contractAddr := contract.Address()

0 commit comments

Comments
 (0)