|
|
@ -18,6 +18,7 @@ class EthereumStore extends ObservableStore { |
|
|
|
constructor (opts = {}) { |
|
|
|
constructor (opts = {}) { |
|
|
|
super({ |
|
|
|
super({ |
|
|
|
accounts: {}, |
|
|
|
accounts: {}, |
|
|
|
|
|
|
|
currentBlockGasLimit: '', |
|
|
|
}) |
|
|
|
}) |
|
|
|
this._provider = opts.provider |
|
|
|
this._provider = opts.provider |
|
|
|
this._query = new EthQuery(this._provider) |
|
|
|
this._query = new EthQuery(this._provider) |
|
|
@ -54,6 +55,8 @@ class EthereumStore extends ObservableStore { |
|
|
|
const blockNumber = '0x' + block.number.toString('hex') |
|
|
|
const blockNumber = '0x' + block.number.toString('hex') |
|
|
|
this._currentBlockNumber = blockNumber |
|
|
|
this._currentBlockNumber = blockNumber |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` }) |
|
|
|
|
|
|
|
|
|
|
|
async.parallel([ |
|
|
|
async.parallel([ |
|
|
|
this._updateAccounts.bind(this), |
|
|
|
this._updateAccounts.bind(this), |
|
|
|
], (err) => { |
|
|
|
], (err) => { |
|
|
|