diff --git a/pkg/node/node.go b/pkg/node/node.go index 592eccc..fec8fdd 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -281,19 +281,20 @@ func setBuilderMapping( return err } auth.Nonce = big.NewInt(int64(nonce)) + + // Returns priority fee per gas gasTip, err := client.SuggestGasTipCap(ctx) if err != nil { return err } + // Returns priority fee per gas + base fee per gas gasPrice, err := client.SuggestGasPrice(ctx) if err != nil { return err } - gasFeeCap := new(big.Int).Add(gasTip, gasPrice) - - auth.GasFeeCap = gasFeeCap + auth.GasFeeCap = gasPrice auth.GasTipCap = gasTip txn, err := rc.AddBuilderAddress(auth, builderName, common.HexToAddress(builderAddress)) diff --git a/pkg/settler/settler.go b/pkg/settler/settler.go index e9d70e8..19ac995 100644 --- a/pkg/settler/settler.go +++ b/pkg/settler/settler.go @@ -130,19 +130,19 @@ func (s *Settler) getTransactOpts(ctx context.Context) (*bind.TransactOpts, erro } auth.Nonce = big.NewInt(int64(nonce)) + // Returns priority fee per gas gasTip, err := s.client.SuggestGasTipCap(ctx) if err != nil { return nil, err } + // Returns priority fee per gas + base fee per gas gasPrice, err := s.client.SuggestGasPrice(ctx) if err != nil { return nil, err } - gasFeeCap := new(big.Int).Add(gasTip, gasPrice) - - auth.GasFeeCap = gasFeeCap + auth.GasFeeCap = gasPrice auth.GasTipCap = gasTip return auth, nil