How to implement the proposal validation?
Here we will see how a buyer can validate a proposal with the createTransaction function.
Good to Know
① The proposal validation process
<div className='grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4'>
{validatedProposal ? (
<ProposalItem proposal={validatedProposal} />
) : (
proposals.map((proposal, i) => {
return (
<div key={i}>
{(service.status === ServiceStatusEnum.Opened ||
proposal.status === ProposalStatusEnum.Validated) && (
<ProposalItem proposal={proposal} />
)}
</div>
);
})
)}
</div>See the Full Code Implemented on Our Demo DAPP
Last updated