Skip to content

Commit c1113dd

Browse files
committed
update readme
1 parent 9a5c390 commit c1113dd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,39 @@ If you are using multiple contracts, you can pass a reference to another contrac
138138
...
139139
```
140140

141+
You can now deploy many instances of the same contract. e.g
142+
143+
144+
```Yaml
145+
# config/contracts.yml
146+
development:
147+
Currency:
148+
args:
149+
- 100
150+
Usd:
151+
instanceOf: Currency
152+
args:
153+
- "initial string"
154+
MyCoin:
155+
instanceOf: Currency
156+
args:
157+
- $SimpleStorage
158+
...
159+
```
160+
161+
Contracts addresses can be defined, If an address is defined the contract wouldn't be deployed but its defined address will be used instead.
162+
163+
164+
```Yaml
165+
development:
166+
UserStorage:
167+
address: 0x123456
168+
UserManagement:
169+
args:
170+
- $UserStorage
171+
...
172+
```
173+
141174
Tests
142175
======
143176

0 commit comments

Comments
 (0)