Update README.md

This commit is contained in:
Iuri Matias 2016-10-16 16:16:09 -04:00 committed by GitHub
parent 8a1cc77934
commit 74474f5357
1 changed files with 24 additions and 12 deletions

View File

@ -140,19 +140,31 @@ If you are using multiple contracts, you can pass a reference to another contrac
```Yaml ```Yaml
# config/contracts.yml # config/contracts.json
development: {
SimpleStorage:
args:
- 100
- $MyStorage
MyStorage:
args:
- "initial string"
MyMainContract:
args:
- $SimpleStorage
... ...
"development": {
"contracts": {
"SimpleStorage": {
"args": [
100,
$MyStorage
]
},
"MyStorage": {
"args": [
"initial string"
]
},
"MyMainContract": {
"args": [
$SimpleStorage
]
}
}
}
...
}
``` ```
You can now deploy many instances of the same contract. e.g You can now deploy many instances of the same contract. e.g