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
164d5f14
Unverified
Commit
164d5f14
authored
Oct 27, 2020
by
Michael Müller
Committed by
GitHub
Oct 27, 2020
Browse files
Remove pub prefix for pub trait (#544)
parent
24235f09
Pipeline
#112056
failed with stages
in 5 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
RELEASES.md
View file @
164d5f14
...
...
@@ -431,17 +431,17 @@ mod erc20 {
impl
BaseErc20
for
Erc20
{
#[ink(constructor)]
pub
fn
new
(
initial_supply
:
Balance
)
->
Self
{
fn
new
(
initial_supply
:
Balance
)
->
Self
{
// implementation ...
}
#[ink(message)]
pub
fn
total_supply
(
&
self
)
->
Balance
{
fn
total_supply
(
&
self
)
->
Balance
{
// implementation ...
}
#[ink(message,
payable)]
pub
fn
transfer
(
&
mut
self
,
to
:
AccountId
,
amount
:
Balance
)
{
fn
transfer
(
&
mut
self
,
to
:
AccountId
,
amount
:
Balance
)
{
// implementation ...
}
}
...
...
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