Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
55377fd6
Unverified
Commit
55377fd6
authored
Nov 26, 2019
by
Hero Bird
Committed by
GitHub
Nov 26, 2019
Browse files
[core] fix broken doc comment links (#271)
parent
414eca1b
Pipeline
#70099
failed with stages
in 14 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/src/env2/call/builder.rs
View file @
55377fd6
...
...
@@ -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
)
}
...
...
core/src/env2/call/create.rs
View file @
55377fd6
...
...
@@ -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
>
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment