Nice solution @Deini-Atakan
… and welcome to the forum! I hope you’re enjoying the course
That’s a very good attempt at an explanation… just to clarify…
The users
mapping stores instances of each user. Each user instance is based on the User
struct, and therefore has an id property and a balance property. So your solution…
… is assigning (saving) the new balance =>
=> to the balance
property
> of the User
instance (mapped to the id
input into the updateBalance function)
> in the users
mapping