fix(execution): reset tx env blob settings (#4873)

This commit is contained in:
Roman Krasiuk
2023-10-02 14:39:48 +03:00
committed by GitHub
parent 3bd6079f9e
commit 602e7756fb

View File

@@ -191,6 +191,8 @@ where
tx_env.chain_id = *chain_id;
tx_env.nonce = Some(*nonce);
tx_env.access_list.clear();
tx_env.blob_hashes.clear();
tx_env.max_fee_per_blob_gas.take();
}
Transaction::Eip2930(TxEip2930 {
nonce,
@@ -220,6 +222,8 @@ where
(l.address, l.storage_keys.iter().map(|k| U256::from_be_bytes(k.0)).collect())
})
.collect();
tx_env.blob_hashes.clear();
tx_env.max_fee_per_blob_gas.take();
}
Transaction::Eip1559(TxEip1559 {
nonce,
@@ -250,6 +254,8 @@ where
(l.address, l.storage_keys.iter().map(|k| U256::from_be_bytes(k.0)).collect())
})
.collect();
tx_env.blob_hashes.clear();
tx_env.max_fee_per_blob_gas.take();
}
Transaction::Eip4844(TxEip4844 {
nonce,