Skip to content

Commit

Permalink
remove unused purpose param in l1pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Nov 21, 2024
1 parent 0a7803f commit ef22576
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arbos/l1pricing/l1pricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ func (ps *L1PricingState) TransferFromL1FeesAvailable(
amount *big.Int,
evm *vm.EVM,
scenario util.TracingScenario,
purpose string,
reason tracing.BalanceChangeReason,
) (*big.Int, error) {
if err := util.TransferBalance(&L1PricerFundsPoolAddress, &recipient, amount, evm, scenario, reason); err != nil {
Expand Down Expand Up @@ -410,7 +409,7 @@ func (ps *L1PricingState) UpdateForBatchPosterSpending(
return err
}
l1FeesAvailable, err = ps.TransferFromL1FeesAvailable(
payRewardsTo, paymentForRewards, evm, scenario, "batchPosterReward", tracing.BalanceChangeTransferBatchposterReward,
payRewardsTo, paymentForRewards, evm, scenario, tracing.BalanceChangeTransferBatchposterReward,
)
if err != nil {
return err
Expand All @@ -431,7 +430,7 @@ func (ps *L1PricingState) UpdateForBatchPosterSpending(
return err
}
l1FeesAvailable, err = ps.TransferFromL1FeesAvailable(
addrToPay, balanceToTransfer, evm, scenario, "batchPosterRefund", tracing.BalanceChangeTransferBatchposterRefund,
addrToPay, balanceToTransfer, evm, scenario, tracing.BalanceChangeTransferBatchposterRefund,
)
if err != nil {
return err
Expand Down

0 comments on commit ef22576

Please sign in to comment.