@@ -167,17 +167,17 @@ func (t *TestcontainerApps) GetPoSL1EndPoint() (string, error) {
167167 return contrainer .PortEndpoint (context .Background (), "8545/tcp" , "http" )
168168}
169169
170- // GetPoSL1Client returns a raw rpc client and an ethclient by dialing the L1 node
171- func (t * TestcontainerApps ) GetPoSL1Client () (* rpc.Client , * ethclient. Client , error ) {
170+ // GetPoSL1Client returns a raw rpc client by dialing the L1 node
171+ func (t * TestcontainerApps ) GetPoSL1Client () (* rpc.Client , error ) {
172172 endpoint , err := t .GetPoSL1EndPoint ()
173173 if err != nil {
174- return nil , nil , err
174+ return nil , err
175175 }
176- rpcClient , err := rpc .Dial (endpoint )
176+ rawClient , err := rpc .Dial (endpoint )
177177 if err != nil {
178- return nil , nil , fmt .Errorf ("failed to dial L1 rpc endpoint, endpoint: %s, err: %w" , endpoint , err )
178+ return nil , fmt .Errorf ("failed to dial L1 rpc endpoint, endpoint: %s, err: %w" , endpoint , err )
179179 }
180- return rpcClient , ethclient . NewClient ( rpcClient ) , nil
180+ return rawClient , nil
181181}
182182
183183// GetDBEndPoint returns the endpoint of the running postgres container
@@ -223,13 +223,13 @@ func (t *TestcontainerApps) GetGormDBClient() (*gorm.DB, error) {
223223 return database .InitDB (dbCfg )
224224}
225225
226- // GetL2GethClient returns a raw rpc client and an ethclient by dialing the L2 node
227- func (t * TestcontainerApps ) GetL2GethClient () (* rpc. Client , * ethclient.Client , error ) {
226+ // GetL2GethClient returns a ethclient by dialing running L2Geth
227+ func (t * TestcontainerApps ) GetL2GethClient () (* ethclient.Client , error ) {
228228 rpcCli , err := t .GetL2Client ()
229229 if err != nil {
230- return nil , nil , err
230+ return nil , err
231231 }
232- return rpcCli , ethclient .NewClient (rpcCli ), nil
232+ return ethclient .NewClient (rpcCli ), nil
233233}
234234
235235// GetL2GethClient returns a rpc client by dialing running L2Geth
0 commit comments