Skip to content

Commit

Permalink
optimism/rpc: update ports
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda authored and mslipper committed Sep 8, 2022
1 parent 1f265b0 commit cfb1345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulators/optimism/rpc/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func runHTTP(t *hivesim.T, c *hivesim.Client, v *vault, g []byte, fn func(*TestE
},
}

rpcClient, _ := rpc.DialHTTPWithClient(fmt.Sprintf("http://%v:9545/", c.IP), client)
rpcClient, _ := rpc.DialHTTPWithClient(fmt.Sprintf("http://%v:8545/", c.IP), client)
defer rpcClient.Close()
env := &TestEnv{
T: t,
Expand All @@ -66,7 +66,7 @@ func runHTTP(t *hivesim.T, c *hivesim.Client, v *vault, g []byte, fn func(*TestE
// runWS runs the given test function using the WebSocket RPC client.
func runWS(t *hivesim.T, c *hivesim.Client, v *vault, g []byte, fn func(*TestEnv)) {
ctx, done := context.WithTimeout(context.Background(), 5*time.Second)
rpcClient, err := rpc.DialWebsocket(ctx, fmt.Sprintf("ws://%v:9546/", c.IP), "")
rpcClient, err := rpc.DialWebsocket(ctx, fmt.Sprintf("ws://%v:8546/", c.IP), "")
done()
if err != nil {
t.Fatal("WebSocket connection failed:", err)
Expand Down

0 comments on commit cfb1345

Please sign in to comment.