Commit 6be3fea2 authored by yann300's avatar yann300

standard

parent 8b9f09a1
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"ace-mode-solidity": "^0.1.0", "ace-mode-solidity": "^0.1.0",
"async": "^2.1.2", "async": "^2.1.2",
"babel-eslint": "^7.1.1", "babel-eslint": "^7.1.1",
"babel-plugin-transform-modern-regexp": "0.0.6",
"babel-plugin-transform-object-assign": "^6.22.0", "babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-yo-yoify": "^0.3.3", "babel-plugin-yo-yoify": "^0.3.3",
...@@ -111,7 +112,8 @@ ...@@ -111,7 +112,8 @@
"transform-es2015-spread", "transform-es2015-spread",
"transform-es2015-parameters", "transform-es2015-parameters",
"transform-es2015-destructuring", "transform-es2015-destructuring",
"transform-es2015-block-scoping" "transform-es2015-block-scoping",
"transform-modern-regexp"
] ]
}, },
"browserify": { "browserify": {
......
...@@ -124,11 +124,11 @@ module.exports = class UniversalDApp extends UdappApi { ...@@ -124,11 +124,11 @@ module.exports = class UniversalDApp extends UdappApi {
stateManager.getAccount(address, (error, account) => { stateManager.getAccount(address, (error, account) => {
if (error) return console.log(error) if (error) return console.log(error)
account.balance = balance || '0xf00000000000000001' account.balance = balance || '0xf00000000000000001'
stateManager.putAccount(address, account, function cb (error) { stateManager.putAccount(address, account, function cb (error) {
if (error) console.log(error) if (error) console.log(error)
}) })
}) })
this.accounts['0x' + address.toString('hex')] = { privateKey, nonce: 0 } this.accounts['0x' + address.toString('hex')] = { privateKey, nonce: 0 }
} }
} }
......
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