mirror of
https://github.com/GrassrootsEconomics/cic-dw.git
synced 2024-12-22 10:57: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
|
||||
}
|
||||
|
||||
func (c *CicNet) Close() {
|
||||
c.Close()
|
||||
func (c *CicNet) Close() error {
|
||||
err := c.ethClient.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user