...

/

Solution: Create a Contract with Attributes and Functions

Solution: Create a Contract with Attributes and Functions

Let's review the solution to this challenge.

Flowchart of a possible solution

In this challenge, you needed to create a contract named Challenge. This contract has a private variable called targetAmount. It also has a constructor, which has a parameter named amount and checks if the targetAmount is equal to the amount. If ...