fix: (ethClient) handle teardown

This commit is contained in:
Mohamed Sohail 2022-04-29 11:12:47 +03:00
parent e6651fc911
commit e81a505681
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
1 changed files with 7 additions and 2 deletions

View File

@ -22,6 +22,11 @@ func NewCicNet(rpcEndpoint string, tokenIndex common.Address) (*CicNet, error) {
}, nil
}
func (c *CicNet) Close() {
c.Close()
func (c *CicNet) Close() error {
err := c.ethClient.Close()
if err != nil {
return err
}
return nil
}