Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(e2e): fix manager addr #2635

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e/solve/symbiotic/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,21 @@ func AllowOutboxCalls(ctx context.Context, network netconf.ID, backends ethbacke
return errors.Wrap(err, "backend mock l1")
}

if err := allowCalls(ctx, app, l1Backend, addrs.SolveOutbox); err != nil {
if err := allowCalls(ctx, app, network, l1Backend, addrs.SolveOutbox); err != nil {
return errors.Wrap(err, "allow calls")
}

return nil
}

// allowCalls allows the outbox to call the L1 wstETH collateral deposit method.
func allowCalls(ctx context.Context, app App, backend *ethbackend.Backend, outboxAddr common.Address) error {
func allowCalls(ctx context.Context, app App, network netconf.ID, backend *ethbackend.Backend, outboxAddr common.Address) error {
outbox, err := bindings.NewSolveOutbox(outboxAddr, backend)
if err != nil {
return errors.Wrap(err, "new solve outbox")
}

manager := eoa.MustAddress(netconf.Devnet, eoa.RoleManager)
manager := eoa.MustAddress(network, eoa.RoleManager)

txOpts, err := backend.BindOpts(ctx, manager)
if err != nil {
Expand Down
Loading