I've created my own struct:
enum TestState {noWager, wagerMade, wagerAccepted}
And my modifier:
modifier onlyState(GameState expectedState){
if(expectedState == currentState){ _;}
else{throw;}}
I'm wanting to allow a function to be carried out if it is either noWager or wagerMade state.
function testWager() onlyState(GameState.noWager || GameState.wagerMade) payable returns(bool){....}
I am getting the error:
|| not compatible with types enum GameState and enum GameState