MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / it_gets_a_block_number

Function it_gets_a_block_number

web3/src/block.rs:73–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72 #[tokio::test]
73 async fn it_gets_a_block_number() {
74 let response = web3().get_block_number().await;
75 assert!(response.is_ok());
76 }
77
78 #[tokio::test]
79 async fn it_gets_the_latest_block() {

Callers

nothing calls this directly

Calls 2

web3Function · 0.85
get_block_numberMethod · 0.80

Tested by

no test coverage detected