mirror of https://github.com/embarklabs/embark.git
a4a0e9dc33
This commit introduces a new feature that enables users to calculate Smart Contract constructor arguments lazily using an (async) function. Similar to normal Smart Contract configurations, the return or resolved value from that function has to be either a list of arguments in the order as they are needed for the constructor, or as an object with named members that match the arguments individually. ``` ... development: { deploy: { SimpleStorage: { args: async ({ contracts, web3, logger}) => { // do something with `contracts` and `web3` to determine // arguments let someValue = await ...; return [someValue]; // or return { initialValue: someValue }; } } } } ... ``` Closes #2270 |
||
---|---|---|
.. | ||
_data | ||
_posts | ||
assets/images | ||
chat | ||
community | ||
docs | ||
news | ||
plugins | ||
templates | ||
tutorials | ||
CNAME | ||
browserconfig.xml | ||
coverage-files.png | ||
coverage-report.png | ||
embark-logo.svg | ||
favicon.ico | ||
index.md | ||
robots.txt |