mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 05:57:28 +00:00
3b40819444
* grpc regenerate * use string type for id in net_version
15 lines
241 B
Go
15 lines
241 B
Go
package commands
|
|
|
|
import (
|
|
"context"
|
|
"strconv"
|
|
)
|
|
|
|
func (api *NetAPIImpl) Version(_ context.Context) (string, error) {
|
|
res, err := api.ethBackend.NetVersion()
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return strconv.FormatUint(res, 10), nil
|
|
}
|