From 6d169a356e36d1dbc4f5b359519e889524ee58da Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 11 Aug 2020 11:20:47 +0300 Subject: [PATCH] docs: update compiler.md Make a note about compiling directories. --- docs/compiler.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/compiler.md b/docs/compiler.md index 6aeaf541d..8b2613478 100644 --- a/docs/compiler.md +++ b/docs/compiler.md @@ -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: