People see bitcoin/blockchain, don’t know the difference between the two, and realise other people have made lots of money on it. Same people see a new thing which also uses (or in their eyes, “is”) blockchain, and think this is going to be the new way to make money.
I got my first programming job in 1996. I still have days like this.
Today, I had a conversation with my boss about an apprentice in our team. Our senior front-end dev left a few months ago, and the apprentice has had to take on a lot of work with little guidance. Our team is very full of back-end devs with no front-end experience. During this conversation, we described our apprentice as “extremely capable but lacking experience”, and discussed the best way of getting him more experience. The conclusion we came to is that there is no shortcut here, but having good guidance from senior devs can help somewhat.
What I’m trying say here is that what you’re describing is absolutely normal, and based on what you’ve said, you’re doing fine. You have a little imposter syndrome, which seems worse than it is because of your genuine lack of experience… that experience will come with time, and days like today are the days where you learn a load from your mistakes. You’ll probably not hard-code things like that in future, and today you gained a tiny bit of that experience that you need - well done!