From 0f237de59812ead4cbd9365b6fa9e1f575b393ee Mon Sep 17 00:00:00 2001 From: Mario Vega Date: Wed, 5 Apr 2023 16:05:31 -0600 Subject: [PATCH] simulators/ethereum/engine: send `eth_` requests to port 8545 (#752) simulators/ethereum/engine: send `eth_` requests to 8545 --- .../ethereum/engine/client/hive_rpc/hive_rpc.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go b/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go index 5896515a2e..375a337247 100644 --- a/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go +++ b/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go @@ -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" @@ -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 { @@ -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} }