mirror of
https://github.com/GrassrootsEconomics/cic-dw.git
synced 2026-05-14 02:38:41 +02:00
fix: (ethClient) handle teardown
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user