From 74474f535771831fc62eaa85469d864d7ac446ab Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 16 Oct 2016 16:16:09 -0400 Subject: [PATCH] Update README.md --- README.md | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a6868d6c..45273fe2 100644 --- a/README.md +++ b/README.md @@ -140,19 +140,31 @@ If you are using multiple contracts, you can pass a reference to another contrac ```Yaml -# config/contracts.yml - development: - SimpleStorage: - args: - - 100 - - $MyStorage - MyStorage: - args: - - "initial string" - MyMainContract: - args: - - $SimpleStorage +# config/contracts.json +{ ... + "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