Commit e35a3a67 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix indentation to match rest of the file

parent 312098ba
......@@ -25,22 +25,22 @@ function UniversalDApp (contracts, options) {
}
UniversalDApp.prototype.addAccount = function (privateKey, balance) {
if (this.accounts) {
privateKey = new Buffer(privateKey, 'hex')
var address = EthJS.Util.privateToAddress(privateKey);
if (this.accounts) {
privateKey = new Buffer(privateKey, 'hex')
var address = EthJS.Util.privateToAddress(privateKey);
var account = new EthJS.Account();
account.balance = balance || 'f00000000000000001';
this.vm.stateManager.trie.put(address, account.serialize());
var account = new EthJS.Account();
account.balance = balance || 'f00000000000000001';
this.vm.stateManager.trie.put(address, account.serialize());
this.accounts['0x' + address.toString('hex')] = { privateKey: privateKey, nonce: 0 };
}
this.accounts['0x' + address.toString('hex')] = { privateKey: privateKey, nonce: 0 };
}
};
UniversalDApp.prototype.getAccounts = function (cb) {
if (!this.accounts) return cb("No accounts?");
if (!this.accounts) return cb("No accounts?");
cb(null, Object.keys(this.accounts));
cb(null, Object.keys(this.accounts));
};
UniversalDApp.prototype.render = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment