fix: return net version as number (#5570)

This commit is contained in:
Matthias Seitz
2023-11-27 10:28:59 +01:00
committed by GitHub
parent 8667c336a1
commit 13af07c1fb

View File

@@ -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`