We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53789d commit 0aa8f1dCopy full SHA for 0aa8f1d
core/state_transition.go
@@ -294,7 +294,7 @@ func (st *StateTransition) preCheck() error {
294
}
295
296
297
- usesDataGas := len(st.msg.DataHashes()) != 0
+ usesDataGas := st.dataGasUsed().Sign() > 0
298
if usesDataGas && st.evm.ChainConfig().IsSharding(st.evm.Context.BlockNumber) {
299
dataGasPrice := misc.GetDataGasPrice(st.evm.Context.ExcessDataGas)
300
if dataGasPrice.Cmp(st.maxFeePerDataGas) > 0 {
0 commit comments