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