Unverified Commit 55377fd6 authored by Hero Bird's avatar Hero Bird Committed by GitHub
Browse files

[core] fix broken doc comment links (#271)

parent 414eca1b
Pipeline #70099 failed with stages
in 14 minutes and 34 seconds
......@@ -116,7 +116,7 @@ where
/// Returns a builder for a cross-contract call that cannot return data.
///
/// Prefer this over [`eval`] if possible since it is the more efficient operation.
/// Prefer this over [`CallParams::eval`] if possible since it is the more efficient operation.
pub fn invoke(
callee: E::AccountId,
selector: Selector,
......@@ -177,7 +177,7 @@ where
///
/// # Note
///
/// Prefer using the [`fire_using`] method whenever possible
/// Prefer using the [`CallBuilder::fire_using`] method whenever possible
/// since it is more efficient.
pub fn fire(self) -> Result<R, CallError>
where
......@@ -193,7 +193,7 @@ where
///
/// Uses the provided environmental access in order to
/// dispatch the call which is more efficient than the
/// [`fire`] method.
/// [`CallBuilder::fire`] method.
pub fn fire_using(self, env: &mut EnvAccessMut<E>) -> Result<R, CallError>
where
R: scale::Decode,
......@@ -210,7 +210,7 @@ where
///
/// # Note
///
/// Prefer using the [`fire_using`] method whenever possible
/// Prefer using the [`CallBuilder::fire_using`] method whenever possible
/// since it is more efficient.
pub fn fire(self) -> Result<(), CallError> {
E::invoke_contract(&mut Vec::new(), &self.params).map_err(|_| CallError)
......@@ -222,7 +222,7 @@ where
///
/// Uses the provided environmental access in order to
/// dispatch the call which is more efficient than the
/// [`fire`] method.
/// [`CallBuilder::fire`] method.
pub fn fire_using(self, env: &mut EnvAccessMut<E>) -> Result<(), CallError> {
env.invoke_contract(&self.params).map_err(|_| CallError)
}
......
......@@ -201,7 +201,7 @@ where
///
/// # Note
///
/// Prefer using [`create_using`] whenever possible because it is more efficient.
/// Prefer using [`CreateBuilder::create_using`] whenever possible because it is more efficient.
pub fn create(self) -> Result<C, CreateError> {
E::create_contract(&mut Vec::new(), &self.params)
.map(FromAccountId::from_account_id)
......@@ -212,7 +212,7 @@ where
///
/// # Note
///
/// Prefer using this over [`create`] whenever possible because it is more efficient.
/// Prefer using this over [`CreateBuilder::create`] whenever possible because it is more efficient.
pub fn create_using(
self,
env_access: &mut EnvAccessMut<E>,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment