fixup! 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
9e227df03d
commit
0f0c7261c4
|
@ -71,7 +71,7 @@ const AddPoll = withFormik({
|
||||||
const { eth: { getBlockNumber }, utils: { asciiToHex } } = window.web3;
|
const { eth: { getBlockNumber }, utils: { asciiToHex } } = 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);
|
||||||
addPoll(
|
addPoll(
|
||||||
endTime,
|
endTime,
|
||||||
asciiToHex(description)
|
asciiToHex(description)
|
||||||
|
|
Loading…
Reference in New Issue