()
| 201 | |
| 202 | #[tokio::test] |
| 203 | async fn gets_an_account_balance() { |
| 204 | let (blockchain, id_1, _) = setup().await; |
| 205 | let balance = blockchain |
| 206 | .lock() |
| 207 | .await |
| 208 | .accounts |
| 209 | .get_account(&id_1) |
| 210 | .unwrap() |
| 211 | .balance; |
| 212 | let mut module = RpcModule::new(blockchain); |
| 213 | eth_get_balance(&mut module).unwrap(); |
| 214 | let response: String = module.call("eth_getBalance", [id_1]).await.unwrap(); |
| 215 | |
| 216 | assert_eq!(response, to_hex(balance)); |
| 217 | } |
| 218 | } |
nothing calls this directly
no test coverage detected