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

Method get_transaction_receipt

chain/src/blockchain.rs:267–278  ·  view source on GitHub ↗
(
        &mut self,
        transaction_hash: H256,
    )

Source from the content-addressed store, hash-verified

265 }
266
267 pub(crate) async fn get_transaction_receipt(
268 &mut self,
269 transaction_hash: H256,
270 ) -> Result<TransactionReceipt> {
271 let transaction_receipt = self
272 .transactions
273 .lock()
274 .await
275 .get_transaction_receipt(&transaction_hash)?;
276
277 Ok(transaction_receipt)
278 }
279}
280
281#[cfg(test)]

Callers 2

assert_receiptFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected