fixup! Merge branch '000-snt-voting-dapp' of https://github.com/status-im/contracts into 000-snt-voting-dapp
This commit is contained in:
parent
cac0ecf2f7
commit
2b0b834827
|
@ -89,7 +89,7 @@ const AddPoll = withFormik({
|
||||||
},
|
},
|
||||||
async handleSubmit(values, { setSubmitting, setErrors, props }) {
|
async handleSubmit(values, { setSubmitting, setErrors, props }) {
|
||||||
const { description } = values;
|
const { description } = values;
|
||||||
const { eth: { getBlockNumber }, utils: { asciiToHex } } = window.web3;
|
const { eth: { getBlockNumber } } = window.web3;
|
||||||
const { addPoll } = PollManager.methods;
|
const { addPoll } = PollManager.methods;
|
||||||
const currentBlock = await getBlockNumber();
|
const currentBlock = await getBlockNumber();
|
||||||
const endTime = currentBlock + (oneDayinBlocks * 90);
|
const endTime = currentBlock + (oneDayinBlocks * 90);
|
||||||
|
|
Loading…
Reference in New Issue