mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 00:58:11 -05:00
fix: return net version as number (#5570)
This commit is contained in:
@@ -32,7 +32,8 @@ where
|
||||
{
|
||||
/// Handler for `net_version`
|
||||
fn version(&self) -> Result<String> {
|
||||
Ok(self.eth.chain_id().to_string())
|
||||
// Note: net_version is numeric: <https://github.com/paradigmxyz/reth/issues/5569
|
||||
Ok(self.eth.chain_id().to::<u64>().to_string())
|
||||
}
|
||||
|
||||
/// Handler for `net_peerCount`
|
||||
|
||||
Reference in New Issue
Block a user