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
3f33c655
Unverified
Commit
3f33c655
authored
Oct 27, 2020
by
Michael Müller
Committed by
GitHub
Oct 27, 2020
Browse files
Remove pub prefix for pub trait (#542)
parent
0b1be71a
Pipeline
#112050
failed with stages
in 3 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
RELEASES.md
View file @
3f33c655
...
...
@@ -402,15 +402,15 @@ use ink_lang as ink;
pub
trait
BaseErc20
{
/// Creates a new ERC-20 contract and initializes it with the initial supply for the instantiator.
#[ink(constructor)]
pub
fn
new
(
initial_supply
:
Balance
)
->
Self
;
fn
new
(
initial_supply
:
Balance
)
->
Self
;
/// Returns the total supply.
#[ink(message)]
pub
fn
total_supply
(
&
self
)
->
Balance
;
fn
total_supply
(
&
self
)
->
Balance
;
/// Transfers `amount` from caller to `to`.
#[ink(message,
payable)]
pub
fn
transfer
(
&
mut
self
,
to
:
AccountId
,
amount
:
Balance
);
fn
transfer
(
&
mut
self
,
to
:
AccountId
,
amount
:
Balance
);
}
```
...
...
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