Browse Source

Version 0.4.3

master v0.4.3
Ezerous 4 years ago
parent
commit
83c9ad5afd
  1. 2
      package.json
  2. 4
      src/blocks/blocksSaga.js

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "@ezerous/drizzle", "name": "@ezerous/drizzle",
"version": "0.4.2", "version": "0.4.3",
"description": "A reactive data-store for web3 and smart contracts.", "description": "A reactive data-store for web3 and smart contracts.",
"license": "MIT", "license": "MIT",
"author": "Ezerous <ezerous@gmail.com>", "author": "Ezerous <ezerous@gmail.com>",

4
src/blocks/blocksSaga.js

@ -36,6 +36,10 @@ export function createBlockChannel ({ drizzle, web3 }) {
} }
function * callCreateBlockChannel ({ drizzle, web3 }) { function * callCreateBlockChannel ({ drizzle, web3 }) {
// Get current block
const currentBlock = yield call(web3.eth.getBlock,"latest");
yield put ({ type: BlocksActions.BLOCK_RECEIVED, blockHeader: currentBlock, drizzle, web3 })
const blockChannel = yield call(createBlockChannel, { const blockChannel = yield call(createBlockChannel, {
drizzle, drizzle,
web3 web3

Loading…
Cancel
Save