mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-28 05:10:43 +00:00
feat: support selecting what library to generate artifacts feat: support selecting what library to generate artifacts feat: support selecting what library to generate artifacts feat: support selecting what library to generate artifacts working web3 artifacts remove unnecessary request address code review issues fixes update tests WIP: add index.js in packages/plugins/embarkjs/ This is a pattern established in #2285 remove comment fix some code review issues
18 lines
539 B
JavaScript
18 lines
539 B
JavaScript
import EmbarkJS from 'Embark/EmbarkJS';
|
|
|
|
// import your contracts
|
|
// e.g if you have a contract named SimpleStorage:
|
|
//import SimpleStorage from 'Embark/contracts/SimpleStorage';
|
|
|
|
EmbarkJS.onReady((err) => {
|
|
// You can execute contract calls after the connection
|
|
});
|
|
|
|
// OR if using "library: 'web3'" in config/contracts.js
|
|
|
|
// import web3 from '../../embarkArtifacts/web3.js';
|
|
// import SimpleStorage from '../embarkArtifacts/contracts/SimpleStorage';
|
|
// web3.onReady(async () => {
|
|
// let accounts = await web3.eth.getAccounts();
|
|
//})
|