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
3764d1c7
Commit
3764d1c7
authored
Dec 04, 2019
by
Liu-Cheng Xu
Committed by
Andrew Jones
Dec 04, 2019
Browse files
Fix new custom types syntax error in the document (#290)
parent
fcf511a8
Pipeline
#70989
failed with stages
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
RELEASES.md
View file @
3764d1c7
# Version 2.0 Syntax (2019-1
1-11
)
# Version 2.0 Syntax (2019-1
2-03
)
The ink! version 2.0 syntax has one major philosophy:
...
...
@@ -92,7 +92,7 @@ We used to define types using a special `#![env = DefaultSrmlTypes]` tag.
Now we simply include the type definition in the
`#[ink::contract(...)]`
tag:
```
rust
#[ink::contract(version
=
"0.1.0"
,
types
=
MyCustomTypes)]
#[ink::contract(version
=
"0.1.0"
,
env
=
MyCustomTypes)]
```
By default, we use
`DefaultSrmlTypes`
, so you don't need to define anything unless you plan to use
...
...
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