Skip to content

Commit

Permalink
Merge pull request #2715 from epociask/epociask-chore-rm-bridge-from-…
Browse files Browse the repository at this point in the history
…batch-poster

chore: Remove bridge binding from `BatchPoster`
  • Loading branch information
tsahee authored Oct 15, 2024
2 parents a2ae1c5 + e357edc commit 65d7401
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arbnode/batch_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ type BatchPoster struct {
arbOSVersionGetter execution.FullExecutionClient
config BatchPosterConfigFetcher
seqInbox *bridgegen.SequencerInbox
bridge *bridgegen.Bridge
syncMonitor *SyncMonitor
seqInboxABI *abi.ABI
seqInboxAddr common.Address
Expand Down Expand Up @@ -309,10 +308,7 @@ func NewBatchPoster(ctx context.Context, opts *BatchPosterOpts) (*BatchPoster, e
if err != nil {
return nil, err
}
bridge, err := bridgegen.NewBridge(opts.DeployInfo.Bridge, opts.L1Reader.Client())
if err != nil {
return nil, err
}

if err = opts.Config().Validate(); err != nil {
return nil, err
}
Expand Down Expand Up @@ -340,7 +336,6 @@ func NewBatchPoster(ctx context.Context, opts *BatchPosterOpts) (*BatchPoster, e
arbOSVersionGetter: opts.VersionGetter,
syncMonitor: opts.SyncMonitor,
config: opts.Config,
bridge: bridge,
seqInbox: seqInbox,
seqInboxABI: seqInboxABI,
seqInboxAddr: opts.DeployInfo.SequencerInbox,
Expand Down

0 comments on commit 65d7401

Please sign in to comment.