From f9993b48804107e19d36a3237ad1824b6d47cf76 Mon Sep 17 00:00:00 2001 From: Pablo Deymonnaz Date: Fri, 27 Sep 2024 17:35:39 -0300 Subject: [PATCH] ChainID method in HttpBackend and WsBackend interfaces --- chainio/clients/eth/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chainio/clients/eth/client.go b/chainio/clients/eth/client.go index 709851b7..9102862c 100644 --- a/chainio/clients/eth/client.go +++ b/chainio/clients/eth/client.go @@ -18,6 +18,7 @@ type HttpBackend interface { BlockNumber(ctx context.Context) (uint64, error) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) + ChainID(ctx context.Context) (*big.Int, error) } // WsBackend is the Websocket ETH Client interface @@ -29,4 +30,5 @@ type WsBackend interface { BlockNumber(ctx context.Context) (uint64, error) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) + ChainID(ctx context.Context) (*big.Int, error) }