Smart Contract: Create and Apply for Jobs
Learn to extend our smart contract to allow users to create and apply for jobs.
We'll cover the following...
We'll cover the following...
In this lesson, we’ll focus on adding extra features to our smart contract. Currently, we can create profiles; now we’ll extend this to let users create listings for jobs or apply for them.
Creating a job offer
We’ll begin with the function for creating job offers. Paste the updated code content into the Remix workspace, and then we’ll go through the changes.
constants.sol
Here, we introduce a new constant for an error message that will be used when the caller attempting to create a new job offer has no creator profile.
enums.sol
In lines 7–11, we introduce a new enum for the status of job applications. This status will be Pending, ...