From 7c7a9bc53b9721b65d89a3ce24c204e5b90b7c73 Mon Sep 17 00:00:00 2001 From: irrun Date: Mon, 1 Apr 2024 11:21:24 +0800 Subject: [PATCH] feat: add bid fee ceil in mev_params --- internal/ethapi/api_mev.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/api_mev.go b/internal/ethapi/api_mev.go index 0fa92af1a..d6e6d66e5 100644 --- a/internal/ethapi/api_mev.go +++ b/internal/ethapi/api_mev.go @@ -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 } @@ -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 {