Skip to content

Commit 91f1748

Browse files
committed
don't wait for account funds
1 parent 231199c commit 91f1748

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/cmds/blockchain/blockchain.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ Blockchain.prototype.run = function() {
164164
data = data.toString();
165165
if (self.onReadyCallback && !self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
166166
if (self.isDev) {
167-
return self.createFundAndUnlockAccounts((err) => {
167+
self.createFundAndUnlockAccounts((err) => {
168168
if(err) console.error('Error creating, unlocking, and funding accounts', err);
169-
self.readyCalled = true;
170-
self.onReadyCallback();
169+
//self.readyCalled = true;
170+
//self.onReadyCallback();
171171
});
172172
}
173173
self.readyCalled = true;

lib/contracts/blockchain.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class Blockchain {
9292
},
9393
function fundAccountsIfNeeded(next) {
9494
console.dir('[blockchain/contracts]: funding accounts');
95+
self.isWeb3Ready = true;
9596
provider.fundAccounts(next);
9697
}
9798
], (err) => {

0 commit comments

Comments
 (0)