I have developed a smart contract such that there are two types of tokens i.e. energy and power. I need to transfer each of them separately to an account address and as a result each address needs to have these two values (energy and power).
But when I define two types of balances for an address, i receive the following error :
Error: Undeclared identifier. Did you mean "balances"? return balancesPw[_owner];
I defined balances as follows:
mapping(address => uint256) balances; mapping(address => uint256) Pwbalances;