pub struct SubmittedDeploy {
pub tx_hash: TxHash,
pub address: ContractAddress,
}Expand description
An admitted deployment, whose hash and predicted address can be saved and checked again without resubmission.
Fields§
§tx_hash: TxHash§address: ContractAddressImplementations§
Source§impl SubmittedDeploy
impl SubmittedDeploy
Sourcepub async fn wait<C: ClientT + Sync, F: Future<Output = ()>>(
&self,
client: &NativeClient<C>,
network_hash: NetworkHash,
config: ReceiptPollConfig,
cancelled: F,
) -> Result<TransactionReceipt, ReceiptPollError>
pub async fn wait<C: ClientT + Sync, F: Future<Output = ()>>( &self, client: &NativeClient<C>, network_hash: NetworkHash, config: ReceiptPollConfig, cancelled: F, ) -> Result<TransactionReceipt, ReceiptPollError>
Wait for the authoritative receipt, including unsuccessful execution receipts.
Check it with verify. This method never resubmits.
Sourcepub fn verify(
&self,
receipt: &TransactionReceipt,
) -> Result<(), DeploymentVerificationError>
pub fn verify( &self, receipt: &TransactionReceipt, ) -> Result<(), DeploymentVerificationError>
Require receipt to belong to this deployment and, when execution succeeded, to
return exactly the predicted address. Unsuccessful execution is not an error here;
callers inspect receipt.execution.
Trait Implementations§
Source§impl Clone for SubmittedDeploy
impl Clone for SubmittedDeploy
impl Copy for SubmittedDeploy
Auto Trait Implementations§
impl Freeze for SubmittedDeploy
impl RefUnwindSafe for SubmittedDeploy
impl Send for SubmittedDeploy
impl Sync for SubmittedDeploy
impl Unpin for SubmittedDeploy
impl UnsafeUnpin for SubmittedDeploy
impl UnwindSafe for SubmittedDeploy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more