examples: add documentation
And provide the wallet for examples `my_wallet.json` with the owner address inside.
This commit is contained in:
parent
2f07d1aa9e
commit
0948d53244
6 changed files with 119 additions and 0 deletions
|
@ -45,6 +45,11 @@ func TestCompiler(t *testing.T) {
|
|||
infos, err := ioutil.ReadDir(examplePath)
|
||||
require.NoError(t, err)
|
||||
for _, info := range infos {
|
||||
if !info.IsDir() {
|
||||
// example smart contracts are located in the `examplePath` subdirectories, but
|
||||
// there are also a couple of files inside the `examplePath` which doesn't need to be compiled
|
||||
continue
|
||||
}
|
||||
infos, err := ioutil.ReadDir(path.Join(examplePath, info.Name()))
|
||||
require.NoError(t, err)
|
||||
require.False(t, len(infos) == 0, "detected smart contract folder with no contract in it")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue