docs: update compiler.md

Make a note about compiling directories.
This commit is contained in:
Evgenii Stratonikov 2020-08-11 11:20:47 +03:00
parent a34ba92d46
commit 6d169a356e

View file

@ -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: