2017-10-14 00:01:35 +00:00
|
|
|
__mainContext.web3 = undefined;
|
2017-12-13 16:38:36 +00:00
|
|
|
web3 = new Web3(new Web3.providers.HttpProvider("<%- url -%>"));
|
2018-01-12 23:06:51 +00:00
|
|
|
web3.eth.getAccounts(function(err, accounts) {
|
|
|
|
if (err) {
|
|
|
|
return done(new Error(err));
|
|
|
|
}
|
|
|
|
web3.defaultAccount = accounts[0];
|
|
|
|
<%- done %>
|
|
|
|
});
|