Skip to content

Commit

Permalink
missed spot
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Feb 14, 2024
1 parent 8989d55 commit b63e192
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,19 +292,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))
Expand Down

0 comments on commit b63e192

Please sign in to comment.