mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
form model fixes
This commit is contained in:
parent
ef02919e5e
commit
8f19f8ac4e
@ -7,8 +7,8 @@ import styles from './index.module.css'
|
|||||||
import PublishForm from './PublishForm'
|
import PublishForm from './PublishForm'
|
||||||
import Web3Feedback from '../../molecules/Wallet/Feedback'
|
import Web3Feedback from '../../molecules/Wallet/Feedback'
|
||||||
import { FormContent } from '../../../@types/Form'
|
import { FormContent } from '../../../@types/Form'
|
||||||
import { initialValues, validationSchema } from './validation'
|
import { initialValues, validationSchema } from '../../../models/FormPublish'
|
||||||
import { MetadataPublishForm, MetadataMarket } from '../../../@types/Metadata'
|
import { MetadataPublishForm } from '../../../@types/Metadata'
|
||||||
import { transformPublishFormToMetadata } from './utils'
|
import { transformPublishFormToMetadata } from './utils'
|
||||||
import Preview from './Preview'
|
import Preview from './Preview'
|
||||||
|
|
||||||
@ -40,9 +40,11 @@ export default function PublishPage({
|
|||||||
`)
|
`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const ddo = await publish(metadata as any, tokensToMint, [
|
const ddo = await publish(
|
||||||
{ serviceType, cost }
|
metadata as any,
|
||||||
])
|
tokensToMint.toString(),
|
||||||
|
[{ serviceType, cost: cost.toString() }]
|
||||||
|
)
|
||||||
|
|
||||||
if (publishError) {
|
if (publishError) {
|
||||||
toast.error(publishError)
|
toast.error(publishError)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MetadataPublishForm } from '../../../@types/Metadata'
|
import { MetadataPublishForm } from '../@types/Metadata'
|
||||||
import { File as FileMetadata } from '@oceanprotocol/lib'
|
import { File as FileMetadata } from '@oceanprotocol/lib'
|
||||||
import * as Yup from 'yup'
|
import * as Yup from 'yup'
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user