You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constisSynthetic=receipt.cumulativeGasUsed===constants.ZERO_HEX;// assuming that synthetic receipts have 0 gas used and regular receipts have non-zero gas used
452
+
if(index>0&&isSynthetic){
453
+
// if the index is 0, we don't need to set the cumulative gas used for the synthetic receipt, as it's already set to 0
454
+
receipt.cumulativeGasUsed=sortedReceipts[index-1].cumulativeGasUsed;// assign the cumulative gas of previous transaction, as the synthetic transaction uses 0 gas
0 commit comments