This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onSubmit = async values => { | |
setLoading(true); | |
const now = (new Date().getTime() / 1000).toFixed(); | |
const hash = createHash(); | |
const details = detailsToJSON({ ...values, hash }); | |
const args = [values.applicant, details]; | |
try { | |
const poll = createPoll({ action: 'submitProposal', cachePoll })({ | |
daoID: daoid, |