()
| 165 | } |
| 166 | |
| 167 | func (e *Exchange) stopPreviousSubscribe() { |
| 168 | if e.subscription != nil { |
| 169 | e.subscription.Unsubscribe() |
| 170 | e.subscription = nil |
| 171 | } |
| 172 | if e.client != nil { |
| 173 | e.client.Close() |
| 174 | e.client = nil |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | func (e *Exchange) getChainID() (chainID int64, err error) { |
| 179 | var result hexutil.Big |
no test coverage detected