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

chore(solver): fix staging solver addresses #2685

Merged
merged 1 commit into from
Dec 12, 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
7 changes: 3 additions & 4 deletions e2e/solve/devapp/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/omni-network/omni/contracts/bindings"
"github.com/omni-network/omni/lib/errors"
"github.com/omni-network/omni/lib/evmchain"
"github.com/omni-network/omni/lib/log"
solver "github.com/omni-network/omni/solver/types"

Expand All @@ -25,8 +24,8 @@ func (App) Name() string {
return "devapp"
}

func (App) ChainID() uint64 {
return evmchain.IDMockL1
func (a App) ChainID() uint64 {
return a.L1.ChainID
}

func (a App) Address() common.Address {
Expand Down Expand Up @@ -61,7 +60,7 @@ func (a App) TokenPrereqs(call bindings.SolveCall) ([]bindings.SolveTokenPrereq,

func (a App) Verify(srcChainID uint64, call bindings.SolveCall, deposits []bindings.SolveDeposit) error {
// we only accept deposits from mock L2
if srcChainID != evmchain.IDMockL2 {
if srcChainID != a.L2.ChainID {
return errors.New("source chain not supported", "src", srcChainID)
}

Expand Down
Loading