get the receipt of the transaction
(&self, hash: &H256)
| 26 | |
| 27 | // get the receipt of the transaction |
| 28 | pub(crate) fn get_transaction_receipt(&self, hash: &H256) -> Result<TransactionReceipt> { |
| 29 | let transaction_receipt = self |
| 30 | .receipts |
| 31 | .get(hash) |
| 32 | .ok_or_else(|| ChainError::TransactionNotFound(hash.to_string()))? |
| 33 | .value() |
| 34 | .clone(); |
| 35 | |
| 36 | Ok(transaction_receipt) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | #[cfg(test)] |