Skip to content

Commit

Permalink
Fix: consistent construction of omnirpc url
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Oct 9, 2023
1 parent e328ef3 commit 0433dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agents/agents/executor/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var ExecutorRunCommand = &cli.Command{

for _, client := range executorConfig.ScribeConfig.EmbeddedScribeConfig.Chains {
for confNum := 1; confNum <= scribeCmd.MaxConfirmations; confNum++ {
backendClient, err := backend.DialBackend(ctx, fmt.Sprintf("%s/%d/rpc/%d", executorConfig.ScribeConfig.EmbeddedScribeConfig.RPCURL, confNum, client.ChainID), handler)
backendClient, err := backend.DialBackend(ctx, fmt.Sprintf("%s/confirmations/%d/rpc/%d", executorConfig.BaseOmnirpcURL, confNum, client.ChainID), handler)
if err != nil {
return fmt.Errorf("could not start client for %s", fmt.Sprintf("%s/1/rpc/%d", executorConfig.ScribeConfig.EmbeddedScribeConfig.RPCURL, client.ChainID))
}
Expand Down
2 changes: 1 addition & 1 deletion agents/agents/guard/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ var GuardRunCommand = &cli.Command{

for _, client := range guardConfig.ScribeConfig.EmbeddedScribeConfig.Chains {
for confNum := 1; confNum <= scribeCmd.MaxConfirmations; confNum++ {
backendClient, err := backend.DialBackend(ctx, fmt.Sprintf("%s/%d/rpc/%d", guardConfig.BaseOmnirpcURL, confNum, client.ChainID), handler)
backendClient, err := backend.DialBackend(ctx, fmt.Sprintf("%s/confirmations/%d/rpc/%d", guardConfig.BaseOmnirpcURL, confNum, client.ChainID), handler)
if err != nil {
return fmt.Errorf("could not start client for %s", fmt.Sprintf("%s/1/rpc/%d", guardConfig.BaseOmnirpcURL, client.ChainID))
}
Expand Down

0 comments on commit 0433dfa

Please sign in to comment.