{
address wallet;
uint balance;
}
User[][8] Box;
How I can return the user from method by his wallet (type - address)? It's possible?
mapping are good friends
Is that? struct User { uint balance; } mapping(address => User) Matrix; Matrix[8] Box;
Matrix is a variable name. It cant be used as a type
Is that ok? mapping(address => User)[8] Box;
can you explain why you need that 8 ?
yes, of course.
Обсуждают сегодня