mirror of https://github.com/embarklabs/embark.git
Update README.md
This commit is contained in:
parent
74474f5357
commit
0c614a457a
41
README.md
41
README.md
|
@ -170,21 +170,32 @@ If you are using multiple contracts, you can pass a reference to another contrac
|
|||
You can now deploy many instances of the same contract. e.g
|
||||
|
||||
|
||||
```Yaml
|
||||
# config/contracts.yml
|
||||
development:
|
||||
Currency:
|
||||
deploy: false
|
||||
args:
|
||||
- 100
|
||||
Usd:
|
||||
instanceOf: Currency
|
||||
args:
|
||||
- "initial string"
|
||||
MyCoin:
|
||||
instanceOf: Currency
|
||||
args:
|
||||
- $SimpleStorage
|
||||
```Json
|
||||
# config/contracts.json
|
||||
{
|
||||
"development": {
|
||||
"contracts": {
|
||||
"Currency": {
|
||||
"deploy": false,
|
||||
"args": [
|
||||
100
|
||||
]
|
||||
},
|
||||
"Usd": {
|
||||
"instanceOf": "Currency",
|
||||
"args": [
|
||||
200
|
||||
]
|
||||
},
|
||||
"MyCoin": {
|
||||
"instanceOf": "Currency",
|
||||
"args": [
|
||||
200
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue