mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-09 11:19:06 +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
|
./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
|
### Debugging
|
||||||
You can dump the opcodes generated by the compiler with the following command:
|
You can dump the opcodes generated by the compiler with the following command:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue