import React from 'react' import { Formik } from 'formik' import LiquidPledgingMock from 'Embark/contracts/LiquidPledgingMock' import TextField from '@material-ui/core/TextField' const { setMockedTime } = LiquidPledgingMock.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