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

Function it_gets_a_balance

web3/src/account.rs:102–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101 #[tokio::test]
102 async fn it_gets_a_balance() {
103 let account = *ACCOUNT_1;
104 let response = web3().get_balance(account).await;
105 assert!(response.is_ok());
106 }
107
108 #[tokio::test]
109 async fn it_gets_a_balance_by_block() {

Callers

nothing calls this directly

Calls 2

web3Function · 0.85
get_balanceMethod · 0.80

Tested by

no test coverage detected