mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
10 lines
250 B
Plaintext
10 lines
250 B
Plaintext
__mainContext.web3 = undefined;
|
|
web3 = new Web3(new Web3.providers.HttpProvider("<%- url -%>"));
|
|
web3.eth.getAccounts(function(err, accounts) {
|
|
if (err) {
|
|
return done(new Error(err));
|
|
}
|
|
web3.defaultAccount = accounts[0];
|
|
<%- done %>
|
|
});
|