import React from 'react' import { Formik } from 'formik' import LiquidPledging from '../embarkArtifacts/contracts/LiquidPledging' import TextField from '@material-ui/core/TextField' const { setMockedTime } = LiquidPledging.methods const SetMockedTime = () => ( { const { time } = values const n = Math.floor(new Date().getTime() / 1000) + Number(time) setMockedTime(n) .send() .then(res => {console.log({res})}) .catch(err => {console.log({err})}) }} > {({ values, errors, touched, handleChange, handleBlur, handleSubmit, setFieldValue, setStatus, status }) => (
)}
) export default SetMockedTime