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

Function it_gets_a_transaction_receipt

web3/src/transaction.rs:171–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170 #[tokio::test]
171 async fn it_gets_a_transaction_receipt() {
172 let tx_hash = send_transaction().await.unwrap();
173
174 // TODO(ddimaria): use polling or callbacks instead of waiting
175 sleep(Duration::from_millis(2000)).await;
176
177 let response = web3().transaction_receipt(tx_hash).await;
178 assert!(response.is_ok());
179 }
180
181 #[tokio::test]
182 async fn it_sends_a_raw_transfer_transaction() {

Callers

nothing calls this directly

Calls 3

send_transactionFunction · 0.85
web3Function · 0.85
transaction_receiptMethod · 0.80

Tested by

no test coverage detected