Skip to content

Commit

Permalink
fix(e2e): fix manager addr (#2635)
Browse files Browse the repository at this point in the history
Fix manager addr in allow calls.

issue: none
  • Loading branch information
kevinhalliday authored Dec 4, 2024
1 parent 7fd1c39 commit 69aa1c9
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 69aa1c9

Please sign in to comment.