DEV Community

Latricia Nickelberry
Latricia Nickelberry

Posted on

Solidity Error Resolved

I was working on this error for a few days and could not seem to figure out.
truffle_pet
I attempted to reconfigure the truffle.config.js file.
truffle_config_04
That did not fix the error, so I kept trying to mess around with the file and nothing was working.
Here is example of the code.
Take a look at it very closely and see if you can see what the error is.
solidity_contract

If you are like me. You missed seeing that I closed off the whole contract right after adopters.
Inkedsolidity_contract_LI

Sometimes we over look the smallest of details. I hope this was helpful.

Top comments (1)

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

But it's obvious when you look at the indentation! Well... except that you did not indent line 4 at all. Indentation cannot help you If you don't indent your lines. ;-)