()
| 176 | } |
| 177 | |
| 178 | func (e *Exchange) getChainID() (chainID int64, err error) { |
| 179 | var result hexutil.Big |
| 180 | err = e.rawClient.Call(&result, "eth_chainId") |
| 181 | if err != nil { |
| 182 | return |
| 183 | } |
| 184 | chainID = result.ToInt().Int64() |
| 185 | return |
| 186 | } |
| 187 | |
| 188 | func (e *Exchange) connectServer(ctx context.Context) (err error) { |
| 189 | e.stopPreviousSubscribe() |