Skip to content

Commit

Permalink
Fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Nov 12, 2024
1 parent c15c47d commit cf4ece0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/opbot/botmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ func (b *Bot) makeFastBridge(ctx context.Context, req *relapi.GetQuoteRequestRes
return nil, fmt.Errorf("error getting chain client: %w", err)
}

contractAddress, ok := contracts.Contracts[req.OriginChainID]
// TODO: handle v2 contract if specified
contractAddress, ok := contracts.ContractsV1[req.OriginChainID]

Check warning on line 397 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L397

Added line #L397 was not covered by tests
if !ok {
return nil, errors.New("contract address not found")
}
Expand Down

0 comments on commit cf4ece0

Please sign in to comment.