Skip to content

Commit

Permalink
added missing epoch for inner tx
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanculeanu committed Sep 11, 2024
1 parent 1f2d593 commit 7becc67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/external/transactionAPI/gasUsedAndFeeProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ func (gfp *gasUsedAndFeeProcessor) handleRelayedV1(args [][]byte, tx *transactio
fee := gfp.feeComputer.ComputeTxFeeBasedOnGasUsed(tx, gasUsed)

innerFee := gfp.feeComputer.ComputeTransactionFee(&transaction.ApiTransactionResult{
Tx: innerTx,
Tx: innerTx,
Epoch: tx.Epoch,
})

return big.NewInt(0).Add(fee, innerFee), true
Expand All @@ -146,7 +147,8 @@ func (gfp *gasUsedAndFeeProcessor) handleRelayedV2(args [][]byte, tx *transactio
fee := gfp.feeComputer.ComputeTxFeeBasedOnGasUsed(tx, gasUsed)

innerFee := gfp.feeComputer.ComputeTransactionFee(&transaction.ApiTransactionResult{
Tx: innerTx,
Tx: innerTx,
Epoch: tx.Epoch,
})

return big.NewInt(0).Add(fee, innerFee), true
Expand Down

0 comments on commit 7becc67

Please sign in to comment.