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 |
||
---|---|---|
.. | ||
another_folder | ||
app | ||
config | ||
some_folder | ||
test | ||
.npmrc | ||
CHANGELOG.md | ||
README.md | ||
embark.json | ||
package.json | ||
test.file |
README.md
embark-dapp-test-app
Test DApp for integration testing purposes
In the top-level of the monorepo
yarn globalize
to make development embark available on the global PATH.
In this directory
embark run
to check if everything is behaving as expected.
embark test
to see tests are working as expected.
Visit framework.embarklabs.io to get started with Embark.