I've been coding in solidity and got this error "Member "betsOnBitcoinGoesUp" is not available in struct BetOnBitcoinNew.BettingObject memory outside of storage." What does this mean?
The function that produced error looks like this.
function getUserBetsfromBettingObject(uint index, address callerAddress) constant returns (uint) {
BettingObject memory currentBettingObject = arrayOfBettingObjects[index];
if (currentBettingObject.currentState == GameState.bitcoinUpWon) {
return currentBettingObject.betsOnBitcoinGoesUp[callerAddress];
} else if (currentBettingObject.currentState == GameState.bitcoinDownWon) {
return currentBettingObject.betsOnBitcoinGoesDown[callerAddress];
} else {
return 0;
}
}