Skip to content

Commit

Permalink
simulators/ethereum/engine: send eth_ requests to port 8545 (#752)
Browse files Browse the repository at this point in the history
simulators/ethereum/engine: send `eth_` requests to 8545
  • Loading branch information
marioevz committed Apr 5, 2023
1 parent 71595be commit 0f237de
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions simulators/ethereum/engine/client/hive_rpc/hive_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"time"

"github.com/ethereum/go-ethereum"
api "github.com/ethereum/go-ethereum/beacon/engine"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"
api "github.com/ethereum/go-ethereum/beacon/engine"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/rpc"
Expand Down Expand Up @@ -248,10 +248,7 @@ func (ec *HiveRPCEngineClient) StorageAtKeys(ctx context.Context, account common
results[key] = valueResult
}

if err := ec.PrepareDefaultAuthCallToken(); err != nil {
return nil, err
}
if err := ec.c.BatchCallContext(ctx, reqs); err != nil {
if err := ec.cEth.BatchCallContext(ctx, reqs); err != nil {
return nil, err
}
for i, req := range reqs {
Expand Down Expand Up @@ -513,10 +510,7 @@ func (ec *HiveRPCEngineClient) SendTransactions(ctx context.Context, txs []*type
Result: &hashes[i],
}
}
if err := ec.PrepareDefaultAuthCallToken(); err != nil {
return []error{err}
}
if err := ec.c.BatchCallContext(ctx, reqs); err != nil {
if err := ec.cEth.BatchCallContext(ctx, reqs); err != nil {
return []error{err}
}

Expand Down

0 comments on commit 0f237de

Please sign in to comment.