Trait alloy_network::ReceiptResponse
source · pub trait ReceiptResponse {
// Required methods
fn contract_address(&self) -> Option<Address>;
fn status(&self) -> bool;
}
Expand description
A receipt response.
This is distinct from TxReceipt
, since this is for JSON-RPC receipts.
Required Methods§
sourcefn contract_address(&self) -> Option<Address>
fn contract_address(&self) -> Option<Address>
Address of the created contract, or None
if the transaction was not a deployment.
sourcefn status(&self) -> bool
fn status(&self) -> bool
Status of the transaction.
§Note
Caution must be taken when using this method for deep-historical receipts, as it may not accurately reflect the status of the transaction. The transaction status is not knowable from the receipt for transactions before EIP-658.
This can be handled using TxReceipt::status_or_post_state
.