Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Nov 2, 2023
1 parent 95f61a0 commit 88ed330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/submodule/eth/eth_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,12 @@ func newEthTxReceipt(ctx context.Context, tx types.EthTx, lookup *types.MsgLooku
}

// The tx is located in the parent tipset
parentTs, err := ca.ChainGetTipSet(ctx, ts.Parents())
parentTS, err := ca.ChainGetTipSet(ctx, ts.Parents())
if err != nil {
return types.EthTxReceipt{}, fmt.Errorf("failed to lookup tipset %s when constructing the eth txn receipt: %w", ts.Parents(), err)
}

baseFee := parentTs.Blocks()[0].ParentBaseFee
baseFee := parentTS.Blocks()[0].ParentBaseFee
gasOutputs := gas.ComputeGasOutputs(lookup.Receipt.GasUsed, int64(tx.Gas), baseFee, big.Int(tx.MaxFeePerGas), big.Int(tx.MaxPriorityFeePerGas), true)
totalSpent := big.Sum(gasOutputs.BaseFeeBurn, gasOutputs.MinerTip, gasOutputs.OverEstimationBurn)

Expand Down

0 comments on commit 88ed330

Please sign in to comment.