fixup! Merge branch '000-snt-voting-dapp' of https://github.com/status-im/contracts into 000-snt-voting-dapp

This commit is contained in:
Barry Gitarts 2018-06-28 10:56:14 -04:00
parent cac0ecf2f7
commit 2b0b834827
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ const AddPoll = withFormik({
},
async handleSubmit(values, { setSubmitting, setErrors, props }) {
const { description } = values;
const { eth: { getBlockNumber }, utils: { asciiToHex } } = window.web3;
const { eth: { getBlockNumber } } = window.web3;
const { addPoll } = PollManager.methods;
const currentBlock = await getBlockNumber();
const endTime = currentBlock + (oneDayinBlocks * 90);