net_version string value return instead of uint64 (#3849)

pull/3850/head
Ganesha Upadhyaya 3 years ago committed by GitHub
parent b34d06b269
commit 2393c9cced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rpc/net.go

@ -62,7 +62,7 @@ func (s *PublicNetService) PeerCount(ctx context.Context) (interface{}, error) {
func (s *PublicNetService) Version(ctx context.Context) interface{} {
switch s.version {
case Eth:
return nodeconfig.GetDefaultConfig().GetNetworkType().ChainConfig().EthCompatibleChainID.Uint64()
return nodeconfig.GetDefaultConfig().GetNetworkType().ChainConfig().EthCompatibleChainID.String()
default:
return fmt.Sprintf("%d", s.chainID)
}

Loading…
Cancel
Save