Skip to content

Commit

Permalink
feat: remove a param
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Feb 4, 2025
1 parent 3b66203 commit 5b09a0f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func createPayloadAndSetHead(

// If the Pacaya block is preconfirmed, we don't need to insert it again.
if meta.BlockID.Cmp(new(big.Int).SetUint64(rpc.PacayaClients.ForkHeight)) >= 0 {
header, err := isBlockPreconfirmed(ctx, rpc, meta, anchorTx)
header, err := isBlockPreconfirmed(ctx, rpc, meta)
if err != nil {
log.Debug("Failed to check if the block is preconfirmed", "error", err)
} else if header != nil {
Expand Down Expand Up @@ -208,7 +208,6 @@ func isBlockPreconfirmed(
ctx context.Context,
rpc *rpc.Client,
meta *createPayloadAndSetHeadMetaData,
anchorTx *types.Transaction,
) (*types.Header, error) {
var blockID = new(big.Int).Add(meta.Parent.Number, common.Big1)
header, err := rpc.L2.HeaderByNumber(ctx, blockID)
Expand Down

0 comments on commit 5b09a0f

Please sign in to comment.