mirror of
https://github.com/GrassrootsEconomics/cic-dw.git
synced 2024-12-22 19:07:33 +01:00
fix: (ethClient) handle teardown
This commit is contained in:
parent
e6651fc911
commit
e81a505681
@ -22,6 +22,11 @@ func NewCicNet(rpcEndpoint string, tokenIndex common.Address) (*CicNet, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CicNet) Close() {
|
func (c *CicNet) Close() error {
|
||||||
c.Close()
|
err := c.ethClient.Close()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user