Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
changed event struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Apr 16, 2024
1 parent 5d5c0c0 commit cebd982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/preconfirmation/preconfirmation.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/ethereum/go-ethereum/common"
blocktracker "github.com/primevprotocol/contracts-abi/clients/BlockTracker"
preconfpb "github.com/primevprotocol/mev-commit/gen/go/preconfirmation/v1"
providerapiv1 "github.com/primevprotocol/mev-commit/gen/go/providerapi/v1"
blocktrackercontract "github.com/primevprotocol/mev-commit/pkg/contracts/block_tracker"
Expand Down Expand Up @@ -327,7 +328,7 @@ func (p *Preconfirmation) handleBid(
func (p *Preconfirmation) subscribeNewL1Block(ctx context.Context) error {
ev := events.NewEventHandler(
"NewL1Block",
func(newL1Block *blocktrackercontract.NewL1BlockEvent) error {
func(newL1Block *blocktracker.BlocktrackerNewL1Block) error {
p.logger.Info("New L1 Block event received", "blockNumber", newL1Block.BlockNumber, "winner", newL1Block.Winner, "window", newL1Block.Window)
// todo: for provider check if winner == providerAddress, for bidder if committerAddress
for _, commitment := range p.commitmentByBlockNumber[newL1Block.BlockNumber.Int64()] {
Expand Down

0 comments on commit cebd982

Please sign in to comment.