2018-01-03 17:42:48 +00:00
|
|
|
import EmbarkJS from 'Embark/EmbarkJS';
|
|
|
|
|
|
|
|
// import your contracts
|
|
|
|
// e.g if you have a contract named SimpleStorage:
|
|
|
|
//import SimpleStorage from 'Embark/contracts/SimpleStorage';
|
|
|
|
|
2019-02-22 19:10:53 +00:00
|
|
|
EmbarkJS.onReady((err) => {
|
2019-01-28 13:25:03 +00:00
|
|
|
// You can execute contract calls after the connection
|
|
|
|
});
|
2020-02-07 20:24:16 +00:00
|
|
|
|
|
|
|
// 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();
|
|
|
|
//})
|