examples: add documentation

And provide the wallet for examples `my_wallet.json` with the owner
address inside.
This commit is contained in:
Anna Shaleva 2021-03-22 21:13:29 +03:00
parent 2f07d1aa9e
commit 0948d53244
6 changed files with 119 additions and 0 deletions

View file

@ -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")