Skip to content

Commit

Permalink
fix: pointer param of sendBid
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Mar 28, 2024
1 parent 8c15f92 commit bf9375d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api_mev.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewMevAPI(b Backend) *MevAPI {
// SendBid receives bid from the builders.
// If mev is not running or bid is invalid, return error.
// Otherwise, creates a builder bid for the given argument, submit it to the miner.
func (m *MevAPI) SendBid(ctx context.Context, args *types.BidArgs) (common.Hash, error) {
func (m *MevAPI) SendBid(ctx context.Context, args types.BidArgs) (common.Hash, error) {
if !m.b.MevRunning() {
return common.Hash{}, types.ErrMevNotRunning
}
Expand Down Expand Up @@ -94,7 +94,7 @@ func (m *MevAPI) SendBid(ctx context.Context, args *types.BidArgs) (common.Hash,
}
}

return m.b.SendBid(ctx, args)
return m.b.SendBid(ctx, &args)
}

func (m *MevAPI) BestBidGasFee(_ context.Context, parentHash common.Hash) *big.Int {
Expand Down

0 comments on commit bf9375d

Please sign in to comment.