MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / client_version

Function client_version

fendermint/eth/api/src/apis/web3.rs:13–26  ·  view source on GitHub ↗

Returns the current client version.

(data: JsonRpcData<C>)

Source from the content-addressed store, hash-verified

11
12/// Returns the current client version.
13pub async fn client_version<C>(data: JsonRpcData<C>) -> JsonRpcResult<String>
14where
15 C: Client + Sync + Send,
16{
17 let res: abci::response::Info = data
18 .tm()
19 .abci_info()
20 .await
21 .context("failed to fetch info")?;
22
23 let version = format!("{}/{}/{}", res.data, res.version, res.app_version);
24
25 Ok(version)
26}
27
28/// Returns Keccak-256 (not the standardized SHA3-256) of the given data.
29///

Callers

nothing calls this directly

Calls 2

contextMethod · 0.80
tmMethod · 0.80

Tested by

no test coverage detected