Commit 3764d1c7 authored by Liu-Cheng Xu's avatar Liu-Cheng Xu Committed by Andrew Jones
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
# Version 2.0 Syntax (2019-11-11)
# Version 2.0 Syntax (2019-12-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:
#[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
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