标签: solidity
我尝试使用auto instructor = instructors[_address],但出现错误: DeclarationError: Identifier not found or not unique.
auto instructor = instructors[_address]
DeclarationError: Identifier not found or not unique.
答案 0 :(得分:0)
您可以先定义变量的类型,然后再将其分配给各自的值。您的情况是:
Instructor storage instructor = instructors[_address]