@indexing/jiti 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1176,7 +1176,10 @@ const $8deaea1ef39b6485$export$5beebc5708fabf3c = {
|
|
|
1176
1176
|
for (const tx of typedBlock.transactions || []){
|
|
1177
1177
|
if (!tx.receipt) continue;
|
|
1178
1178
|
const timestamp = new Date(typedBlock.timestamp * 1000).toISOString();
|
|
1179
|
-
|
|
1179
|
+
// Some EVM forks (e.g. Cronos / Ethermint) omit effectiveGasPrice on the receipt;
|
|
1180
|
+
// fall back to the tx's gasPrice so gas-fee math doesn't throw and drop the whole block.
|
|
1181
|
+
const effectiveGasPrice = tx.receipt.effectiveGasPrice ?? tx.gasPrice ?? 0;
|
|
1182
|
+
const transactionGasFee = BigInt(tx.receipt.gasUsed ?? 0) * BigInt(effectiveGasPrice);
|
|
1180
1183
|
// check if this tx has zkSync native ETH Transfer logs (used to skip unreliable traces)
|
|
1181
1184
|
const hasZkSyncEthLogs = tx.receipt.logs.some((log)=>log.address.toLowerCase() === $8deaea1ef39b6485$var$ZKSYNC_NATIVE_ETH);
|
|
1182
1185
|
// track direct ETH transfers
|