EOSBlox/blox-tictactoe-stakes

Unreliable reward payment

alepacheco opened this issue · 2 comments

The loser and change its permissions mid game making the game stakeless

eosio::action(eosio::permission_level{loser, N(active)}, N(eosio.token), N(transfer),

Thanks for the notice. I am going to try making another version where the stakes are transferred from both players on newgame to make sure they have the funds, and then transfer from the contract to the winner instead (and on draw or endgame to both, of course).

@alepacheco I've changed in accordance to the above. Any comments?