Skip to content

Commit

Permalink
Fix HTTP client address
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot authored Sep 11, 2024
1 parent c8732c8 commit b517f15
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check PR
on:
pull_request:

jobs:
check-pr:
name: Check PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'sbt'
- name: Check PR
run: sbt --batch "compile"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import scala.concurrent.duration.{DurationInt, FiniteDuration}

class HttpEngineApiClient(val config: ClientConfig, val backend: SttpBackend[Identity, ?]) extends EngineApiClient with JsonRpcClient {

val apiUrl: Uri = Uri(config.executionClientAddress)
val apiUrl: Uri = uri"${config.executionClientAddress}"

def forkChoiceUpdate(blockHash: BlockHash, finalizedBlockHash: BlockHash): Job[String] = {
sendEngineRequest[ForkChoiceUpdatedRequest, ForkChoiceUpdatedResponse](ForkChoiceUpdatedRequest(blockHash, finalizedBlockHash, None), BlockExecutionTimeout)
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/units/client/http/HttpEcApiClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import sttp.client3.*

class HttpEcApiClient(val config: ClientConfig, val backend: SttpBackend[Identity, ?]) extends EcApiClient with JsonRpcClient {

val apiUrl = uri"http://${config.executionClientAddress}:${config.httpApiPort}"
val apiUrl = uri"${config.executionClientAddress}"

def getBlockByNumber(number: BlockNumber): Job[Option[EcBlock]] = {
for {
Expand Down

0 comments on commit b517f15

Please sign in to comment.