Skip to content

Commit 0aa8f1d

Browse files
authored
Address nit in earlier PR (ethereum#33)
1 parent a53789d commit 0aa8f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (st *StateTransition) preCheck() error {
294294
}
295295
}
296296
}
297-
usesDataGas := len(st.msg.DataHashes()) != 0
297+
usesDataGas := st.dataGasUsed().Sign() > 0
298298
if usesDataGas && st.evm.ChainConfig().IsSharding(st.evm.Context.BlockNumber) {
299299
dataGasPrice := misc.GetDataGasPrice(st.evm.Context.ExcessDataGas)
300300
if dataGasPrice.Cmp(st.maxFeePerDataGas) > 0 {

0 commit comments

Comments
 (0)