Trait ink_wrapper_types::UploadConnection
source · pub trait UploadConnection<TxInfo, E>: Sync {
// Provided method
fn upload<'life0, 'async_trait>(
&'life0 self,
_call: UploadCall
) -> Pin<Box<dyn Future<Output = Result<TxInfo, E>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
A connection with the ability to upload WASM code to the chain.
Provided Methods§
sourcefn upload<'life0, 'async_trait>(
&'life0 self,
_call: UploadCall
) -> Pin<Box<dyn Future<Output = Result<TxInfo, E>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upload<'life0, 'async_trait>(
&'life0 self,
_call: UploadCall
) -> Pin<Box<dyn Future<Output = Result<TxInfo, E>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Upload the given WASM code to the chain.
Implementation is optional, the default calls unimplemented!()
.
The implementor SHOULD verify that the code hash resulting from the upload is equal to the given code_hash
.