there some terrible solutions or mistakes?
arise - create Pet and assign it to the user
inherit - create new Pet based on previous one
All works fine. remix is not showing any errors
I am not sure about usage of memory/calldata I used "calldata" by default, if compiler hated it - i replace it with "memory" :)
also random function looks weird, but it is only solution that worked for me
what is the problem?
I sent a contract for review
.
but what is the problem?
Обсуждают сегодня