()
| 58 | |
| 59 | #[tokio::test] |
| 60 | async fn gets_a_transaction_receipt() { |
| 61 | let (blockchain, _, _) = setup().await; |
| 62 | let to = Account::random(); |
| 63 | let transaction = new_transaction(to, blockchain.clone()).await; |
| 64 | let transaction_hash = transaction.hash.unwrap(); |
| 65 | |
| 66 | blockchain |
| 67 | .lock() |
| 68 | .await |
| 69 | .transactions |
| 70 | .lock() |
| 71 | .await |
| 72 | .send_transaction(transaction); |
| 73 | |
| 74 | assert_receipt(blockchain, transaction_hash).await; |
| 75 | } |
| 76 | } |
nothing calls this directly
no test coverage detected