Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
catdev2024 committed Mar 6, 2021
1 parent 4a60206 commit fe7f157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The compiler outputs results in a JSON file. It’s a representation used to bui
"C:\\Users\\sCrypt\\code\\project\\util.scrypt"
"C:\\Users\\sCrypt\\code\\project\\contract.scrypt"
],
"sourceMap": [ //sourceMap, you need to enable sourceMap setting in sCrypt IDE, default is disable.
"sourceMap": [ //sourceMap, you need to enable sourceMap setting in sCrypt IDE, default is disabled.
"0:76:53:76:58",
...
]
Expand All @@ -121,7 +121,7 @@ There are two ways to generate this file (named as `xxx_desc.json`):
desc: true // set this flag to be `true` to get the description file output
asm: true // set this flag to be `true` to get the asm file output
optimize: false //set this flag to be `true` to get optimized asm opcode
sourceMap: true //set this flag to be `true` to get source Map
sourceMap: true //set this flag to be `true` to get source map
}
);
```
Expand Down Expand Up @@ -164,7 +164,7 @@ Note that `parameters` in both constructor and function call are mapped to sCryp

In this way, the type of parameters could be checked and potential bugs can be detected before running.

Other complex types are the structure and type aliases of user positioning. They need to be dynamically generated and you can use `buildTypeClasses` to do that.
Composite types, including structs and type aliases, are dynamically generated by `buildTypeClasses`.

```typescript
const {Person, Male, Female} = buildTypeClasses(JSON.parse(descFileContent));
Expand Down

0 comments on commit fe7f157

Please sign in to comment.