mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
docs: update compiler.md
Make a note about compiling directories.
This commit is contained in:
parent
a34ba92d46
commit
6d169a356e
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ By default the filename will be the name of your .go file with the .nef extensio
|
|||
./bin/neo-go contract compile -i mycontract.go --out /Users/foo/bar/contract.nef
|
||||
```
|
||||
|
||||
If you contract is split across multiple files, you must provide a path
|
||||
to the directory where package files are contained instead of a single Go file:
|
||||
```
|
||||
./bin/neo-go contract compile -i ./path/to/contract
|
||||
```
|
||||
|
||||
### Debugging
|
||||
You can dump the opcodes generated by the compiler with the following command:
|
||||
|
||||
|
|
Loading…
Reference in a new issue