@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/module.js
CHANGED
|
@@ -1158,7 +1158,10 @@ const $5ec62a2088d070a8$export$5beebc5708fabf3c = {
|
|
|
1158
1158
|
for (const tx of typedBlock.transactions || []){
|
|
1159
1159
|
if (!tx.receipt) continue;
|
|
1160
1160
|
const timestamp = new Date(typedBlock.timestamp * 1000).toISOString();
|
|
1161
|
-
|
|
1161
|
+
// Some EVM forks (e.g. Cronos / Ethermint) omit effectiveGasPrice on the receipt;
|
|
1162
|
+
// fall back to the tx's gasPrice so gas-fee math doesn't throw and drop the whole block.
|
|
1163
|
+
const effectiveGasPrice = tx.receipt.effectiveGasPrice ?? tx.gasPrice ?? 0;
|
|
1164
|
+
const transactionGasFee = BigInt(tx.receipt.gasUsed ?? 0) * BigInt(effectiveGasPrice);
|
|
1162
1165
|
// check if this tx has zkSync native ETH Transfer logs (used to skip unreliable traces)
|
|
1163
1166
|
const hasZkSyncEthLogs = tx.receipt.logs.some((log)=>log.address.toLowerCase() === $5ec62a2088d070a8$var$ZKSYNC_NATIVE_ETH);
|
|
1164
1167
|
// track direct ETH transfers
|